diff options
author | Harpreet | 2016-08-31 10:22:01 +0530 |
---|---|---|
committer | Harpreet | 2016-08-31 10:22:01 +0530 |
commit | 356c6215f4872911205dcb2d155e7687ae4dd2a8 (patch) | |
tree | 63222841367ae36ed0bdf52dd30aabf8e5b21049 /docal.sce~ | |
parent | d8fca69f239a275f5ffdbd870508c86b6e69c678 (diff) | |
download | FOSSEE-Optim-toolbox-development-356c6215f4872911205dcb2d155e7687ae4dd2a8.tar.gz FOSSEE-Optim-toolbox-development-356c6215f4872911205dcb2d155e7687ae4dd2a8.tar.bz2 FOSSEE-Optim-toolbox-development-356c6215f4872911205dcb2d155e7687ae4dd2a8.zip |
intfminimax added and fmincon updated
Diffstat (limited to 'docal.sce~')
-rw-r--r-- | docal.sce~ | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/docal.sce~ b/docal.sce~ deleted file mode 100644 index 290af1b..0000000 --- a/docal.sce~ +++ /dev/null @@ -1,27 +0,0 @@ -exec builder.sce -exec loader.sce - - function y=f(x) - y=-x(1)-x(2)/3; - endfunction - //Starting point, linear constraints and variable bounds - x0=[0 , 0]; - A=[1,1 ; 1,1/4 ; 1,-1 ; -1/4,-1 ; -1,-1 ; -1,1]; - b=[2;1;2;1;-1;2]; - Aeq=[1,1]; - beq=[2]; - lb=[]; - ub=[]; - nlc=[]; - //Gradient of objective function - function y= fGrad(x) - y= [-1,-1/3]; - endfunction - //Hessian of lagrangian - function y= lHess(x,obj,lambda) - y= obj*[0,0;0,0] - endfunction - //Options - options=list("GradObj", fGrad, "Hessian", lHess); - //Calling Ipopt - [x,fval] =intfmincon(f, x0,[],A,b,Aeq,beq,lb,ub,nlc) |