Originally posted by: Bahman
Hello Everyone,
I am learning to code optimization problems using Java API and I have an issue in saving the last constraints of the following simple LP into the Array List named Constraints. without that, the code runs, however, an error pops up as I make this line of code active:
Constraints.add(model.addEq(proportionalWeight[j], y));
instead of the following line:
model.addEq(proportionalWeight[j], y);
please find the code attached.
I would really appreciate if you could help me out with this issue.
Regards,
Bahman
#CPLEXOptimizers#DecisionOptimization