Originally posted by: SystemAdmin
Hello,
In general,
solver.solve(IloGoal g, ...) can be used only at the top level of the search so if no exception is thrown in your code, even if the solver is in NoEdit mode, I guess it means that you are at the top level of the search and, in this context, the
IloAndGoal should result in the same behavior as the two
active goals. By the way, if you want to use some internal solve during the search, you need to use
solver.solve(IlcGoal g,...) instead (with an +IlcGoal+).
To understand the difference of behavior, I think you should analyze more in detail how the two searches run and which decisions are taken and in which order by adding some printing information in your goals.
Philippe
#CPOptimizer#DecisionOptimization