summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bonmin.opt1
-rw-r--r--tests/example1.sce12
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/bonmin.opt b/tests/bonmin.opt
new file mode 100644
index 0000000..79523fc
--- /dev/null
+++ b/tests/bonmin.opt
@@ -0,0 +1 @@
+print_level 5
diff --git a/tests/example1.sce b/tests/example1.sce
new file mode 100644
index 0000000..29d8b33
--- /dev/null
+++ b/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)