diff options
author | Harpreet | 2016-01-29 16:38:03 +0530 |
---|---|---|
committer | Harpreet | 2016-01-29 16:38:03 +0530 |
commit | f7c5cbc61d5b52c749824298cfa39a95db2d879c (patch) | |
tree | 27aafcca0159b7b3bb2926ff3a9c6c25834980d2 /demos/fminimax.dem.sce | |
parent | 2db803c34c6df02379ec88df3a7aa186700d9fbf (diff) | |
download | symphony-f7c5cbc61d5b52c749824298cfa39a95db2d879c.tar.gz symphony-f7c5cbc61d5b52c749824298cfa39a95db2d879c.tar.bz2 symphony-f7c5cbc61d5b52c749824298cfa39a95db2d879c.zip |
linprog general tests added
Diffstat (limited to 'demos/fminimax.dem.sce')
-rw-r--r-- | demos/fminimax.dem.sce | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/fminimax.dem.sce b/demos/fminimax.dem.sce index 404af00..d8c462c 100644 --- a/demos/fminimax.dem.sce +++ b/demos/fminimax.dem.sce @@ -16,11 +16,11 @@ endfunction // The initial guess x0 = [0.1,0.1]; // The expected solution : only 4 digits are guaranteed -//xopt = [4 4] -//fopt = [0 -64 -2 -8 0] +xopt = [4 4] +fopt = [0 -64 -2 -8 0] maxfopt = 0 // Run fminimax -[xopt,fopt,maxfval,exitflag,output,lambda] = fminimax(myfun, x0) +[x,fval,maxfval,exitflag,output,lambda] = fminimax(myfun, x0) // Press ENTER to continue halt() // Press return to continue @@ -65,9 +65,9 @@ minimaxOptions = list("GradObj",myfungrad,"GradCon",cgrad); // The initial guess x0 = [0,10]; // The expected solution : only 4 digits are guaranteed -//xopt = [0.92791 7.93551] -//fopt = [6.73443 -189.778 6.73443 -8.86342 0.86342] +xopt = [0.92791 7.93551] +fopt = [6.73443 -189.778 6.73443 -8.86342 0.86342] maxfopt = 6.73443 // Run fminimax -[xopt,fopt,maxfval,exitflag,output] = fminimax(myfun,x0,[],[],[],[],[],[], confun, minimaxOptions) +[x,fval,maxfval,exitflag,output] = fminimax(myfun,x0,[],[],[],[],[],[], confun, minimaxOptions) //========= E N D === O F === D E M O =========// |