Thanks for replying, I am still not able to actully understand to put the
nonlinear equality constraint can you please help me out, say I have a cost
function F(x,y) subjected to constraint g1(x,y) = constant, g2(x,y) =
constant and g3(x,y) = constant.  Now i can make subroutines to calculate
the constraint but how do i club into n put it in the optimizer.  if
possible please explain.

Thank you

On Wed, Jul 17, 2013 at 2:35 AM, Steven G. Johnson <[email protected]>wrote:

>
> On Jul 16, 2013, at 3:33 PM, milind d <[email protected]> wrote:
> >    I am just starting to use the very nice looking nlopt, but i have a
> doubt about implementing equality nonlinear constrained,and also if I have
> many different types of constrains which might not b able to club together
> in one function to give a return value then what should i do, i ask this
> because in tutorial it says only one constrained function is allowed.
> please let me knw if I am missing something, I you have any good examples
> please send me i would be very glad.
>
> You can have as many different constraint functions as you want.
>
> The comment in the tutorial was for an older version of NLopt.  (Even
> then, you could effectively have as many completely different functions as
> you want: you just put in an "if" statement that chooses which constraint
> function to compute based upon the data parameter.  The newer version of
> NLopt is just a bit more user-friendly.)
>
> Steven




-- 
Milind Dhake
Engineering Mechanics Unit
Jawaharlal Nehru Centre for Advanced Scientific Research
Bangalore
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to