If we have two objective functions in Eclipse CLP that Cost1 is more important than Cost2, is the following true?
minimize(minimize(labeling(Vars), Cost1), Costs2).
If we have two objective functions in Eclipse CLP that Cost1 is more important than Cost2, is the following true?
minimize(minimize(labeling(Vars), Cost1), Costs2).
Copyright © 2021 Jogjafile Inc.
Yes, this works, provided you tell the inner minimize to compute all optimal solutions, rather than just the first one (use the bb_min/3 variant of
minimize):The operational behaviour is that first
Cost1is minimized (ignoringCost2), thenCost2is minimized (withCost1fixed at its minimum):