Decision Optimization

 View Only

 minimize_static_lex[]

Ross Dye's profile image
Ross Dye posted Sun June 01, 2025 11:05 PM

Hi
Can anyone help me understand how minimize_static_lex[e1,e2] works.

I have found that it simply finds the first feasible solution with no attempt at minimisation
With a simple model and using minimize(makespan) i get ms=684
Same model with minimize(prod_changes) i get changes = 19

But minimize_static_lex[makespan,prod_changes] gives ms=1845 & changes =27

I can see that this is not optimal in any way

Any advice please?

Olivier Lhomme's profile image
Olivier Lhomme

Hello,
generally speaking, it is easier to answer if the question includes a piece of code to reproduce the problem. 
Anyway:
Maybe you are not using solve(), but are iterating on the solutions of the model (search_next()) ?
Maybe your model contains a search limit (time limit, solution limit, ...) ?
Maybe your model contains a large optimality tolerance?