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);
- opts = intoptimset();
- opts(1) = 1e-9; % required precision
- 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
- Output:
- ite evf evg evi evh min nsol nlist completed
- 0 1 0 0 0 Inf 0 1 0.000
- x =
- []
- Elapsed time is 0.201721 seconds.
Advertisement
Add Comment
Please, Sign In to add comment