Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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) + 1e-7*(x(1)+x(2)+x(3)+x(4)+x(5)+x(6));
- opts = intoptimset();
- opts(1) = 1e-9; % ftol
- x0 = [infsup(0,1), infsup(0,1), infsup(0,1),infsup(0,1), infsup(0,1), infsup(0,1)];
- tic
- x = intminunc(f, x0,opts)
- toc
- ite evf evg evi evh min nsol nlist completed
- 0 1 0 0 0 Inf 0 1 0.000
- x =
- []
- Elapsed time is 0.072212 seconds.
Advertisement
Add Comment
Please, Sign In to add comment