help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question - sqp solver equality constraints function


From: Juan Pablo Carbajal
Subject: Re: Newbie question - sqp solver equality constraints function
Date: Thu, 29 Jun 2017 13:28:47 +0200

> if ( Lb < 0.0 )
>     g = @( x ) [ sum( x( x <= 0.0 ) ); sum( x( x >= 0.0 ) ) ] - [ Lb; Ub ];
> else
>     g = @( x ) sum( x ) - Ub;
> endif
>
Yeah, that's fine.
Make sure your initial guess is also compatible with Lb and Ub.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]