Hi,
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)
Thanks!
You can use the IMPVAR statement to declare each part:
SAS/OR(R) 14.1 User's Guide: Mathematical Programming
And then declare your objective as:
min Z = Z1 + Z2 + ...
This way, you don't have to repeat the expressions.
That's helpful! Thank you!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.