That's right, you can set an arbitrary constant value as an objective function.
Most of the solvers I've tried allow an empty objective function. Just leave it out of your model.
Depending on the solver and the API that you use, it may happen that you need to set the coefficients of all variables in the object to zero.
Do not worry, it should work.
In response to your comment: Yes, constraint programming tools can provide better performance on feasibility issues than LP solvers (like CPLEX). I played several times with IBM ILOG CPLEX CP Optimizer , it's free for academic users. The solver LP and the solver CP did not cope with my problems. Do not expect the miracle of programming restrictions.
Keep in mind that the time required to solve a constraint program grows exponentially with the size of the problem in the worst case. Sooner or later, your problems will most likely become unsolvable with any tool.
Just for your information: in the end, the constraint programming solver will call the LP solver (like CPLEX).
My advice: try the tool that you already have / use the wording of the problem that is more natural for you. Check if the tool can solve your problem. Switch the tool only if the tool fails and you cannot improve your model.
source share