summaryrefslogtreecommitdiff
path: root/newstructure/tests/example1.sce
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:34:27 +0530
committerHarpreet2016-09-03 00:34:27 +0530
commit4b64cf486f5c999fd8167758cae27839f3b50848 (patch)
treed9d06639fb7fa61aef59be0363655e4747105ec7 /newstructure/tests/example1.sce
parentd19794fb80a271a4c885ed90f97cfc12baa012f2 (diff)
downloadFOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.gz
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.bz2
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.zip
Structure updated and intqpipopt files added
Diffstat (limited to 'newstructure/tests/example1.sce')
-rw-r--r--newstructure/tests/example1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/newstructure/tests/example1.sce b/newstructure/tests/example1.sce
new file mode 100644
index 0000000..29d8b33
--- /dev/null
+++ b/newstructure/tests/example1.sce
@@ -0,0 +1,12 @@
+// This example has been taken from the MATLAB quadprog page
+// http://in.mathworks.com/help/optim/ug/quadprog.html
+
+H = [1 -1; -1 2];
+f = [-2; -6];
+A = [1 1; -1 2; 2 1];
+b = [2; 2; 3];
+lb=[0,0];
+ub=[%inf, %inf];
+options=list('MaxIterations',1);
+
+[xopt,fopt,status,output]=intqpipopt(H,f,[],A,b,[],[],lb,ub,[],options)