Hi.
In the example of nonlinearly constrained problem, posted on Wiki (http://ab-initio.mit.edu/wiki/index.php/NLopt_Tutorial), the constraint function "myconstraint" only allows users to have an identical form of constraints for every index of state parameter, "i":

  x(i+1) >= (a(i)*x(i)+b(i))3

that is,

  x(2) >= (a(1)*x(1)+b(1))3
  x(3) >= (a(2)*x(2)+b(2))3

How do I implement the function for different form of constraints for each index? For example,

  x(2) >= 3x(1)-4
  x(3) >= (x(1)-x(2))2


Thanks.


_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to