Karl Ji-wung Choi wrote:
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":

This is not necessary; the constraints can be arbitrary. For example, your state parameter could just be an integer i and you constraint function could have a switch statement that does something completely different for each value of i.

Steven


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

Reply via email to