SAS Optimization, and SAS Simulation Studio

turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-22-2015 04:01 PM

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!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Crubal

07-22-2015 04:20 PM

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to RobPratt

07-22-2015 06:49 PM

That's helpful! Thank you!