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!
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:
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:
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.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.