No BSD License
params.xstart=[2.6;0.7;17;7.3;7.8;2.9;5.0]; params.f = 'OF_SpeedReducer'; params.lb=[2.6;0.7;17;7.3;7.8;2.9;5.0]; params.ub=[3.6;0.8;28;8.3;8.3;3.9;5.5]; %% params.scalingFactor= []; %% to have automatic rescaling params.nNLConstraints=11; params.c='OF_SpeedReducerNLC'; params.rhostart=0.03; params.rhoend=.0001; params.niter=100; [params.xopt,params.valueopt,params.lambdaopt,params.trace] = ... matlabCondor(params.rhostart,params.rhoend,params.niter,params); fprintf('Optimum is at:\n'); params.xopt [a,b]=OF_SpeedReducer(params.xopt); fprintf('value OF=%f\n',a) c=[]; for i=1:params.nNLConstraints [a,b]=OF_SpeedReducerNLC(0,i,params.xopt); c(i)=a; end fprintf('constraints values at optimium are:\n'); c
Contact us at files@mathworks.com