Operations Research topics: SAS/OR,
SAS Optimization, and SAS Simulation Studio

output functional summary to dataset

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

output functional summary to dataset

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
SAS Employee
Posts: 447

Re: output functional summary to dataset

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:

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

View solution in original post


All Replies
Solution
‎07-31-2015 10:28 AM
SAS Employee
Posts: 447

Re: output functional summary to dataset

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:

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

New Contributor
Posts: 2

Re: output functional summary to dataset

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.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

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