BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
wutao9999
Obsidian | Level 7

I am wondering if SAS can allow the following way to set starting points for a nonlinear model:

1)  ignore all nonlinear terms in the model, and first solve the problem using linear programming solver.

2) using the solution of the linear programming solver as the starting point for the nonlinear programming solver.

I have no ideas for the above 2), does anyone know the answer?  Thank you very much.

1 ACCEPTED SOLUTION

Accepted Solutions
RobPratt
SAS Super FREQ

There is nothing automated to do this.  But in PROC OPTMODEL, you can call the LP solver by using SOLVE WITH LP and then later call the NLP solver by using SOLVE WITH NLP.  By default, the second solve will use the solution from the first solve as a starting point.  You can disable this behavior by using the NOINITVAR option in the PROC OPTMODEL statement:

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

You might find it helpful to use the PROBLEM and USE PROBLEM statements to control which parts of the model are passed to the solver:

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

View solution in original post

1 REPLY 1
RobPratt
SAS Super FREQ

There is nothing automated to do this.  But in PROC OPTMODEL, you can call the LP solver by using SOLVE WITH LP and then later call the NLP solver by using SOLVE WITH NLP.  By default, the second solve will use the solution from the first solve as a starting point.  You can disable this behavior by using the NOINITVAR option in the PROC OPTMODEL statement:

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

You might find it helpful to use the PROBLEM and USE PROBLEM statements to control which parts of the model are passed to the solver:

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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1 reply
  • 879 views
  • 0 likes
  • 2 in conversation