Dmitrey

bench 1 - Direct

Mar 26th, 2011
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.40 KB | None | 0 0
  1. f = @(x) x(1)/(x(2)+1e-15) + x(3)/(x(4)+1e-15) + x(5)/(x(6)+1e-15) + x(6)/(x(1)+1e-15);
  2. Problem.f = f;
  3. bounds = [zeros(1,6);ones(1,6)]';
  4. opts.tol = 1e-9;
  5. tic
  6. [ret_minval,final_xatmin,history] = Direct...
  7.    (Problem,bounds,opts);
  8. toc
  9. disp(ret_minval)
Advertisement
Add Comment
Please, Sign In to add comment