|
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.
[Prev in Thread] | Current Thread | [Next in Thread] |