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 2024

Innovate_SAS_Blue.png

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. 

Register now!

Multiple Linear Regression in SAS

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.

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