Dear all, We are using NLopt within Python since one year now, and are pretty happy with it. We were just wondering how we would be able to force one design variable to be discrete?
Typically, we would need to be able to active/de-activate some components in our analysis for instance. We're doing this by setting the design variable within the objective or inequality constraint function to an integer to perform the computation. But this obviously pretty upsets the optimizer as finding the gradients becomes complicated. Is there a way to force some design variables to be discrete instead, while keeping other ones as real values? Thanks for your help, Bernard
_______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
