Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
Math Forum
»
Discussions
»
Software
»
comp.soft-sys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
Using fmincon with multiple nonlinear constraints which are only partially differentiable
Replies:
1
Last Post:
Oct 8, 2013 2:21 PM
|
 |
|
|
Re: Using fmincon with multiple nonlinear constraints which are only partially differentiable
Posted:
Oct 8, 2013 2:21 PM
|
|
On 10/8/2013 1:49 PM, Kenyon wrote: > Hi, > > I'm using fmincon (interior point method) to solve a problem with > multiple nonlinear constraints. The problem is, some of the > constraints have closed-form derivatives, and others don't. In this > case, can I still set the "GradConstr" to "on"? If yes, how should I > write the nonlinear constraints? > > Thanks a lot!
To sensibly set GradConstr to 'on', you need a nonlinear constraint function that returns a gradient for all of the constraints, not just some of them. So the answer to your first question is no.
Alan Weiss MATLAB mathematical toolbox documentation
|
|
|
|