I want to impose a condition on my objective function to force it to be smaller than a double value, instead of optimizing it.
Would you let me know how I can do this, please? Here are a couple of ideas I tried, but they didn't work:
First, I removed the IloMinimize, and I introduced this constraint:
where obj is IloNumExpr, and PrevObjFunction is double; However, it didn't work. Then I tried this: