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
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-31-2015 07:56 AM

Hello all

I'm looking for a way to store the summary of the solution of a proc optmodel in a dataset. For instance if the solution is optimal, feasible or unfeasible.

What statement do I use for storing this information in a dataset as well?

Thanks!

Accepted Solutions

Solution

07-31-2015
10:28 AM

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

07-31-2015 10:28 AM

If you want the whole Solution Summary in a data set, you can use the ODS OUTPUT statement, as shown here:

SAS/OR(R) 14.1 User's Guide: Mathematical Programming

If you just want certain parts, you can use, for example, _SOLUTION_STATUS_ or _OROPTMODEL_NUM_['SOLUTION_STATUS'], as described in the "Solver Status Parameters" section here:

SAS/OR(R) 14.1 User's Guide: Mathematical Programming

You can use the CREATE DATA statement to generate a data set that contains whatever you want:

All Replies

Solution

07-31-2015
10:28 AM

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

07-31-2015 10:28 AM

If you want the whole Solution Summary in a data set, you can use the ODS OUTPUT statement, as shown here:

SAS/OR(R) 14.1 User's Guide: Mathematical Programming

If you just want certain parts, you can use, for example, _SOLUTION_STATUS_ or _OROPTMODEL_NUM_['SOLUTION_STATUS'], as described in the "Solver Status Parameters" section here:

SAS/OR(R) 14.1 User's Guide: Mathematical Programming

You can use the CREATE DATA statement to generate a data set that contains whatever you want:

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

08-03-2015 04:54 AM

Thanks for your quick response. I did not expect it to be in macro variables as it is possible to output the solution to a dataset.