I'm hoping that someone can help me to build the example problem in Matlab 
for BOBYQA.

I have created the myfunc.m file, but I do not know if the follow code is 
included in the same file:

opt.algorithm = NLOPT_LD_MMA
opt.lower_bounds = [-inf, 0]
opt.min_objective = @myfunc
opt.fc = { (@(x) myconstraint(x,2,0)), (@(x) myconstraint(x,-1,1)) }
opt.fc_tol = [1e-8, 1e-8];
opt.xtol_rel = 1e-4

[xopt, fmin, retcode] = nlopt_optimize(opt, [1.234 5.678])

I will appreciate yout help. Israel


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

Reply via email to