BookmarkSubscribeRSS Feed
Crubal
Quartz | Level 8

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!

2 REPLIES 2
RobPratt
SAS Super FREQ

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.

Crubal
Quartz | Level 8

That's helpful! Thank you!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Multiple Linear Regression in SAS

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.

Discussion stats
  • 2 replies
  • 944 views
  • 0 likes
  • 2 in conversation