Closed freemin7 closed 2 years ago
Juniper should work without any "NL" macros, I think that doc is out of date with respect to the latest version.
CC @Wikunia
@freemin7 Since your problem has all linear constraints, and the nonlinearity is only in the objective, mentioning it as @NLobjective
is necessary for Alpine. This may be something which needs to be made clearer in the Documentation. By making it @NLobjective
, it seems to run fine in Juniper and Alpine.
On a side note, your problem as it is seems to be quite large, and Juniper doesn't seem to converge for room_count >= 5
. However, reducing the room_count
parameter to 4 (from 7) seems to converge in Juniper and also in Alpine (in a single iteration). Both Gurobi and Cbc as the MIP solver seem to converge without issues. Alpine's setting for this run is same as this: https://github.com/lanl-ansi/Alpine.jl/blob/65c75f39cdbdd7ccad08f72dc8e2face5d5d9052/examples/run_examples.jl#L20
which raises that issue:
Unrelated to that issue Juniper get's stuck when i use
@NLobjective
but maybe my problem is just to big and just repeats: