Re: [R] Constrained minimization solver for nonlinear programming

2008-01-09 Thread Paul Smith
On Jan 9, 2008 4:01 AM, tom soyer [EMAIL PROTECTED] wrote: I noticed that R has a few bound-constrained nonlinear min and max solvers, such as optim, nlm, etc. But I could not find a constrained min and max solver that is not LP. Does this mean R do not have this capability? It is hard to

Re: [R] Constrained minimization solver for nonlinear programming

2008-01-09 Thread tom soyer
Thanks Paul. yes, with equality constraints. What are friends? I read the document for optim, but still could not figure out how to do this. Do you just set the lower bound equal to the upper bound? Also, is it possible to ask R to search for a solution based on a target value instead of min and

Re: [R] Constrained minimization solver for nonlinear programming

2008-01-09 Thread Paul Smith
On Jan 9, 2008 1:14 PM, tom soyer [EMAIL PROTECTED] wrote: Thanks Paul. yes, with equality constraints. What are friends? I read the document for optim, but still could not figure out how to do this. Do you just set the lower bound equal to the upper bound? constrOptim is a friend of optim.

Re: [R] Constrained minimization solver for nonlinear programming

2008-01-09 Thread tom soyer
Thanks Paul. I thought constrOptim does not do equality. I will check again. A concrete example for finding a solution based on a target value instead of min or max would be something like this: let's say I am trying exponential smoothing on a time series and would like to find a solution for the

Re: [R] Constrained minimization solver for nonlinear programming

2008-01-09 Thread Paul Smith
On Jan 9, 2008 2:13 PM, tom soyer [EMAIL PROTECTED] wrote: Thanks Paul. I thought constrOptim does not do equality. I will check again. Indeed, constrOptim does not do equality constraints, but, trough penalties, one can add them. A concrete example for finding a solution based on a target

Re: [R] Constrained minimization solver for nonlinear programming

2008-01-09 Thread tom soyer
Thanks Paul. I will try it. On 1/9/08, Paul Smith [EMAIL PROTECTED] wrote: On Jan 9, 2008 2:13 PM, tom soyer [EMAIL PROTECTED] wrote: Thanks Paul. I thought constrOptim does not do equality. I will check again. Indeed, constrOptim does not do equality constraints, but, trough penalties,

[R] Constrained minimization solver for nonlinear programming

2008-01-08 Thread tom soyer
Hi, I noticed that R has a few bound-constrained nonlinear min and max solvers, such as optim, nlm, etc. But I could not find a constrained min and max solver that is not LP. Does this mean R do not have this capability? It is hard to believe that R may not be as advanced as Excel in certain