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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 855 views
  • 0 likes
  • 2 in conversation