Originally posted by: 2EH8_Bruno_Maffei
Hi guys, is there anybody who knows how to simplify the following formula?
int NofX = ...;
range X = 1..NofX; // with NofX = 225;
dvar float+ Qt[X];
subject to {
Qt[5]+Qt[6]+Qt[7]+Qt[8]+......+Qt[99]+Qt[100]+Qt[101]+Qt[102] <= 1000;
}
I would like to sum from the Qt[5] to the Qt[102] variable (for instance) without the burden of writing almost 100 variables for just one equation.
Thanks in advance for any help!!
#DecisionOptimization#OPLusingCPLEXOptimizer