Re: [R] Constrainted Nonlinear Optimization - lack of convergence

From: mcgrete <>
Date: Fri, 20 May 2011 06:30:25 -0700 (PDT)

Hello all,

I did find a bug in coding my cost function; I have only run a few examples to verify it works properly, but this appears to have solved most of my questions.

I did find that some of my inequality constraints are not met, e.g. if z1=0; z2=0 are two equality constraints, often the code converges with z1~-1e-6, z2~-1e-8. For the few examples that I have run, this does not appear to have caused a problem. I will try and use z1-1e-4=0 or similar to see if this helps.


View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 20 May 2011 - 14:28:02 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 20 May 2011 - 14:30:08 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive