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

Outputting all variables and other important information about solution to one table

Reply
Contributor
Posts: 60

Outputting all variables and other important information about solution to one table

Is there a way to output all variables, solution (all values within array), information whether solution is optimal etc. to one table?

Are information like "Solution Status" accessible as some macro variables with fixed names or I just have to gather those information from ODS tables?

Do tables in ODS tables (like eg. "Solution Status") may change from one version of SAS to another or are supposed to be constant and I can fix and rely on them in my code?

SAS Employee
Posts: 21

Re: Outputting all variables and other important information about solution to one table

If using OPTMILP, the solutions can be stored in datasets, see doc

http://support.sas.com/documentation/cdl/en/ormpug/63975/HTML/default/viewer.htm#ormpug_optmilp_sect...

PRIMALOUT=SAS-data-set
specifies the output
data set for the primal solution. This data set contains the primal solution
information. See the section Data Input and Output for details.

The Solution status can be access from macro _OROPTMILP_, see doc here

http://support.sas.com/documentation/cdl/en/ormpug/63975/HTML/default/viewer.htm#ormpug_optmilp_sect...

The tables may change over versions (add more rows, etc.). Please refer the documentation of the version that you are using.

Ask a Question
Discussion stats
  • 1 reply
  • 255 views
  • 0 likes
  • 2 in conversation