07-22-2015 04:01 PM
My objective function Z is a summation of many portions, at initial solving, I just define objective function as Z = sum ..... Now I need some parts of it, like Z1 = sum ... ; Z2 = sum... ; Z3 = sum...
Where Z= Z1 + Z2 +Z3 + ... ;
How could I define each Z1, Z2, Z3 ? Thanks!
Details is as the attachment below:
(Last several lines after "quit" is I want to add)
07-22-2015 04:20 PM
You can use the IMPVAR statement to declare each part:
And then declare your objective as:
min Z = Z1 + Z2 + ...
This way, you don't have to repeat the expressions.