Hello,
first time using this website…hope I am writing in the correct category!
I need to decrease the size of a set in a for loop (in C++) in order to reduce the amount of constraint the solver has to deal with.
I defined set Jc := {jMin…jIt}; in my .mod file then in the C++ code I assigned values of jMin and jIt which change in the for loop. Before the solve I tried to do let Jc := Jc diff J2D; but I get the following error
Error executing “let” command: Jc has an = assignment in the model.
Therefore, based on a suggestion found online, I tried to change the definition of the set in the .mod file set Jc default {jMin…jIt}; which got rid of the error but significantly increased the number of constraint and also the constraint eliminated by presolve…
Any idea or suggestions?
Thanks
Sam