I have modelled a problem and it works perfectly. I don't have an objective function. I get 100 solutions with this configuration:
Then, I save all solutions and I apply (in another source code) an heuristic to all of them to check temporal constraints (that are not implemented in Gurobi) and calculate a function and I select the solution with the best value (minimal). The problem is so complex to code it fully in Gurobi with constraints and objective function.
My question is: Could I apply the heuristic and the function inside a callback function with the parameters 'model' and 'where' in a way that Gurobi returns the best value considering this heuristic?
If the answer is Yes, do you have any example of code?
Please sign in to leave a comment.