diff options
author | harpreet | 2016-07-01 00:11:55 +0530 |
---|---|---|
committer | harpreet | 2016-07-01 00:11:55 +0530 |
commit | 89b96cb79cbe75ba8c1afea61b3caca37a083f62 (patch) | |
tree | 1b879fb0dce2406c1c49bf5bdabcedfb12ff020c /demos | |
parent | 10e2e4d8b4a7592a8631ddac8e8d1664d6f0b9e3 (diff) | |
download | symphony-89b96cb79cbe75ba8c1afea61b3caca37a083f62.tar.gz symphony-89b96cb79cbe75ba8c1afea61b3caca37a083f62.tar.bz2 symphony-89b96cb79cbe75ba8c1afea61b3caca37a083f62.zip |
Windows Included
Diffstat (limited to 'demos')
-rw-r--r-- | demos/fmincon.dem.sce | 1 | ||||
-rw-r--r-- | demos/fminunc.dem.sce | 4 | ||||
-rw-r--r--[-rwxr-xr-x] | demos/linprog.dem.sce | 0 | ||||
-rw-r--r-- | demos/symphony.dem.sce | 2 | ||||
-rw-r--r-- | demos/symphonymat.dem.sce | 2 |
5 files changed, 5 insertions, 4 deletions
diff --git a/demos/fmincon.dem.sce b/demos/fmincon.dem.sce index dc6aa39..d379a50 100644 --- a/demos/fmincon.dem.sce +++ b/demos/fmincon.dem.sce @@ -155,4 +155,5 @@ endfunction options=list("MaxIter", [1500], "CpuTime", [500], "GradObj", fGrad, "Hessian", lHess,"GradCon", cGrad); //Calling Ipopt [x,fval,exitflag,output,lambda,grad,hessian] =fmincon(f, x0,A,b,Aeq,beq,lb,ub,nlc,options) +// Press ENTER to continue //========= E N D === O F === D E M O =========// diff --git a/demos/fminunc.dem.sce b/demos/fminunc.dem.sce index a43603e..c68aaeb 100644 --- a/demos/fminunc.dem.sce +++ b/demos/fminunc.dem.sce @@ -20,7 +20,7 @@ function y= fHess(x) y= [1200*x(1)^2- 400*x(2) + 2, -400*x(1);-400*x(1), 200 ]; endfunction //Options -options=list("MaxIter", [1500], "CpuTime", [500], "Gradient", fGrad, "Hessian", fHess); +options=list("MaxIter", [1500], "CpuTime", [500], "GradObj", fGrad, "Hessian", fHess); //Calling Ipopt [xopt,fopt,exitflag,output,gradient,hessian]=fminunc(f,x0,options) // Press ENTER to continue @@ -57,7 +57,7 @@ function y= fHess(x) y= [-2,0;0,-2]; endfunction //Options -options=list("MaxIter", [1500], "CpuTime", [500], "Gradient", fGrad, "Hessian", fHess); +options=list("MaxIter", [1500], "CpuTime", [500], "GradObj", fGrad, "Hessian", fHess); //Calling Ipopt [xopt,fopt,exitflag,output,gradient,hessian]=fminunc(f,x0,options) //========= E N D === O F === D E M O =========// diff --git a/demos/linprog.dem.sce b/demos/linprog.dem.sce index 074cf61..074cf61 100755..100644 --- a/demos/linprog.dem.sce +++ b/demos/linprog.dem.sce diff --git a/demos/symphony.dem.sce b/demos/symphony.dem.sce index a0b629e..dbb755b 100644 --- a/demos/symphony.dem.sce +++ b/demos/symphony.dem.sce @@ -106,7 +106,7 @@ xopt = [0 1 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 1 0 1 1 0 1 .. 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 0 .. 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 0 0 1 0 0 1 0] // Optimal value -fopt = [ 24381 ] +fopt = [ -24381 ] // Calling Symphony [x,f,status,output] = symphony(nbVar,nbCon,c,isInt,lb,ub,A,conLB,conUB,-1,options); //========= E N D === O F === D E M O =========// diff --git a/demos/symphonymat.dem.sce b/demos/symphonymat.dem.sce index 7bc751e..9b15b66 100644 --- a/demos/symphonymat.dem.sce +++ b/demos/symphonymat.dem.sce @@ -98,7 +98,7 @@ xopt = [0 1 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 1 0 1 1 0 1 .. 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 1 .. 0 0 1 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 0 0 1 0 0 1 0] // Optimal value -fopt = [ 24381 ] +fopt = [ -24381 ] // Calling Symphony [x,f,status,output] = symphonymat(c,intcon,A,b,[],[],lb,ub,options); //========= E N D === O F === D E M O =========// |