BookmarkSubscribeRSS Feed
manoeds
Calcite | Level 5

Is possible to solve a model in PROC OPTMILP and load results in OPTMODEL?

 

I like to use the functions 'create data' to send the results to datasets, but OPTMILP does not have this functions

 

Thanks in advanced.

5 REPLIES 5
RobPratt
SAS Super FREQ

You can use the PRIMALOUT= and DUALOUT= options in PROC OPTMILP to output the primal and dual solution data sets.

 

You can then use the READ DATA statement in PROC OPTMODEL to read these data sets.

 

Is there some reason you don't use PROC OPTMODEL to invoke the MILP solver?

manoeds
Calcite | Level 5
Hi Rob Pratt, thanks for the answer

i use OPTMILP because when I export the model in MPS and solve in OPTMILP, the time of solution decrease 5 times

To import solution in the same structure when i export, can i use the function 'read data'? the PRIMALOUT write all solution in a table, but i want to import in the same sets, variables and parameter in optmodel that i export
RobPratt
SAS Super FREQ
That behavior is surprising. Can you please share your code and data so that I can investigate what’s happening?
manoeds
Calcite | Level 5
I tried autorization to share code and shadow data, but is denied for my employer.

I will try to make a more simple model that represent this behavior to share.

For a workaround, i want to import the data of execution in OPTMILP to OPTMODEL in same sets, variables and parameter, is this posible? or i need to process the data in the PRIMALOUT result?
RobPratt
SAS Super FREQ

Yes, a simple model and code would help.  If I can see your workflow, I can better understand what you're trying to do.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

Discussion stats
  • 5 replies
  • 1524 views
  • 1 like
  • 2 in conversation