turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- General Programming
- /
- I want to know if there is any way to optimize a f...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-20-2014 05:19 AM

I have been trying to minimize the distance between two parameters mean & standard deviation and their corresponding start empirical values using a dist function and then optimize it using various optimization techniques like NLPNMS, NLPNRA, NLPTR etc.

Kindly let me know of any other method which is available in SAS/IML to do so. Thank you.

con = { 1.e-6 1.e-6, . .};

blc=j(2,2,.);

opt={0,4};

m = {288827.949 0.385871529};

CALL NLPNRA(rc,x,"dist",m,opt,blc=con);

print x;

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to archismansahoo

03-21-2014 03:26 PM

Yes, and you name a few of the alternate methods. The chapter "Nonlinear Optimization Examples" in the SAS/IML Users Guide has many examples that use trust regions, double-dogleg, etc.

BTW, your call to NLPNRA has an error. If you specify the BLC= option, put it OUTSIDE the closing parentheses:

CALL NLPNRA(rc,x,"dist",m,opt) blc=con;

or just use

CALL NLPNRA(rc,x,"dist",m,opt,con);

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

03-24-2014 04:10 AM

Thanks for the response...I know of the NLPNRA method....I want to know if there is any method other than that for optimizing two variables at a time..as NLPNRA method is not giving me quite optimized results as intended. Also NLPNRA returns me just one scalar value whereas I need to get two optimized values for the two input values I am giving to the function.

Output returns me : x = -5

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to archismansahoo

04-01-2014 02:11 AM

Can you kindly reply soon? It's kind of urgent. Thank you.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to archismansahoo

04-02-2014 08:56 AM

I don't understand your follow-up question. What more information are you looking for? doc shows all of the optimization methods that are built into SAS/IML.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

04-03-2014 12:43 AM

I am looking for such an optimization function which optimizes two variables at the same time and returns the optimized values of the two variables together but none of the optimization methods listed in the doc does that....so I want to know if there is any such optimization method which does optimization of two variables together as given as input in my matrix m. Reply soon

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to archismansahoo

04-11-2014 01:07 AM

Can you reply a bit quicker as I need it urgently for some work?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to archismansahoo

04-11-2014 10:51 AM

I still don't understatnd. The NLP functions enable you to optimize as many parameters as you want. Maybe you should give an example of what you are trying to do. (Also, you'd get faster response if this were posted in a sub-forum such as the SAS/IML Support Community.)