diff options
author | Harpreet | 2015-11-03 15:00:05 +0530 |
---|---|---|
committer | Harpreet | 2015-11-03 15:00:05 +0530 |
commit | 165e99f801ea02baa7292b8099b28727308671ef (patch) | |
tree | ece6743eeee35b80ae9fab64a0e16f29051099b7 | |
parent | 6f01d78e2bba4592d81031f30ff934d59008a69f (diff) | |
download | OR-toolbox-test-cases-165e99f801ea02baa7292b8099b28727308671ef.tar.gz OR-toolbox-test-cases-165e99f801ea02baa7292b8099b28727308671ef.tar.bz2 OR-toolbox-test-cases-165e99f801ea02baa7292b8099b28727308671ef.zip |
qpipopt test added
-rw-r--r-- | qpipopt_LB1.sce | 22 | ||||
-rw-r--r-- | qpipopt_LB2.sce | 22 | ||||
-rw-r--r-- | qpipopt_Q1.sce | 23 | ||||
-rw-r--r-- | qpipopt_Q2.sce | 22 | ||||
-rw-r--r-- | qpipopt_UB1.sce | 22 | ||||
-rw-r--r-- | qpipopt_UB2.sce | 22 | ||||
-rw-r--r-- | qpipopt_conLB1.sce | 22 | ||||
-rw-r--r-- | qpipopt_conLB2.sce | 22 | ||||
-rw-r--r-- | qpipopt_conMatrix1.sce | 21 | ||||
-rw-r--r-- | qpipopt_conMatrix2.sce | 22 | ||||
-rw-r--r-- | qpipopt_conUB1.sce | 22 | ||||
-rw-r--r-- | qpipopt_conUB2.sce | 22 | ||||
-rw-r--r-- | qpipopt_input.sce | 22 | ||||
-rw-r--r-- | qpipopt_input2.sce | 22 | ||||
-rw-r--r-- | qpipopt_options1.sce | 22 | ||||
-rw-r--r-- | qpipopt_options2.sce | 22 | ||||
-rw-r--r-- | qpipopt_options3.sce | 22 | ||||
-rw-r--r-- | qpipopt_p1.sce | 22 | ||||
-rw-r--r-- | qpipopt_p2.sce | 22 | ||||
-rw-r--r-- | qpipopt_x0.sce | 22 | ||||
-rw-r--r-- | qpipopt_x02.sce | 22 |
21 files changed, 462 insertions, 0 deletions
diff --git a/qpipopt_LB1.sce b/qpipopt_LB1.sce new file mode 100644 index 0000000..3492b14 --- /dev/null +++ b/qpipopt_LB1.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The Lower Bound is not equal to the number of variables +//at line 191 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_LB2.sce b/qpipopt_LB2.sce new file mode 100644 index 0000000..9618470 --- /dev/null +++ b/qpipopt_LB2.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]'; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The Lower Bound should be a column vector +//at line 188 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_Q1.sce b/qpipopt_Q1.sce new file mode 100644 index 0000000..37c5d01 --- /dev/null +++ b/qpipopt_Q1.sce @@ -0,0 +1,23 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(5,5); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//error +// +//qpipopt: The Size of Q is not equal to the number of variables +//at line 158 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_Q2.sce b/qpipopt_Q2.sce new file mode 100644 index 0000000..e3088ef --- /dev/null +++ b/qpipopt_Q2.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,5); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: Q is not a symmetric matrix +//at line 152 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_UB1.sce b/qpipopt_UB1.sce new file mode 100644 index 0000000..e322809 --- /dev/null +++ b/qpipopt_UB1.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The Upper Bound is not equal to the number of variables +//at line 201 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_UB2.sce b/qpipopt_UB2.sce new file mode 100644 index 0000000..9fb9112 --- /dev/null +++ b/qpipopt_UB2.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]'; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: p should be a column vector +//at line 165 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_conLB1.sce b/qpipopt_conLB1.sce new file mode 100644 index 0000000..b613a57 --- /dev/null +++ b/qpipopt_conLB1.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The Lower Bound of constraints is not equal to the number of constraints +//at line 211 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_conLB2.sce b/qpipopt_conLB2.sce new file mode 100644 index 0000000..3d23c83 --- /dev/null +++ b/qpipopt_conLB2.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]'; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The Lower Bound should be a column vector +//at line 208 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_conMatrix1.sce b/qpipopt_conMatrix1.sce new file mode 100644 index 0000000..9fd4daf --- /dev/null +++ b/qpipopt_conMatrix1.sce @@ -0,0 +1,21 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1;]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The number of constraints is not equal to the number of constraint given i.e. 5 +//at line 181 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_conMatrix2.sce b/qpipopt_conMatrix2.sce new file mode 100644 index 0000000..b0caa80 --- /dev/null +++ b/qpipopt_conMatrix2.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [-1,1,0,3,1; +-1,0,-3,-4,5; +2,5,3,0,1 +0,1,0,1,2; +-1,0,2,1,1]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The size of constraints is not equal to the number of variables +//at line 175 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_conUB1.sce b/qpipopt_conUB1.sce new file mode 100644 index 0000000..5434b6e --- /dev/null +++ b/qpipopt_conUB1.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The Upper Bound of constraints is not equal to the number of constraints +//at line 221 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_conUB2.sce b/qpipopt_conUB2.sce new file mode 100644 index 0000000..ca8f0e7 --- /dev/null +++ b/qpipopt_conUB2.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]'; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The Upper Bound should be a column vector +//at line 218 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_input.sce b/qpipopt_input.sce new file mode 100644 index 0000000..fb0b86d --- /dev/null +++ b/qpipopt_input.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB) + +//Error +//qpipopt: Unexpected number of input arguments : 8 provided while should be 9, 10 or 11 +//at line 91 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB) diff --git a/qpipopt_input2.sce b/qpipopt_input2.sce new file mode 100644 index 0000000..2bbd111 --- /dev/null +++ b/qpipopt_input2.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,5); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param,[]) + +//Error +//qpipopt: Unexpected number of input arguments : 12 provided while should be 9, 10 or 11 +//at line 91 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB) diff --git a/qpipopt_options1.sce b/qpipopt_options1.sce new file mode 100644 index 0000000..2423764 --- /dev/null +++ b/qpipopt_options1.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: Size of parameters should be even +//at line 120 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_options2.sce b/qpipopt_options2.sce new file mode 100644 index 0000000..b678add --- /dev/null +++ b/qpipopt_options2.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "Time", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: Unrecognized parameter name 'Time'. +//at line 137 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_options3.sce b/qpipopt_options3.sce new file mode 100644 index 0000000..f1c45ab --- /dev/null +++ b/qpipopt_options3.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = ["MaxIter", "CpuTime"]; +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: param should be a list +//at line 120 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_p1.sce b/qpipopt_p1.sce new file mode 100644 index 0000000..9fb9112 --- /dev/null +++ b/qpipopt_p1.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]'; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: p should be a column vector +//at line 165 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_p2.sce b/qpipopt_p2.sce new file mode 100644 index 0000000..b7d8f6f --- /dev/null +++ b/qpipopt_p2.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,nbVar,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The Size of p is not equal to the number of variables +//at line 168 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_x0.sce b/qpipopt_x0.sce new file mode 100644 index 0000000..633b755 --- /dev/null +++ b/qpipopt_x0.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,1,nbVar); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The initial guess should be a column vector +//at line 228 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) diff --git a/qpipopt_x02.sce b/qpipopt_x02.sce new file mode 100644 index 0000000..a30cc9e --- /dev/null +++ b/qpipopt_x02.sce @@ -0,0 +1,22 @@ +//Find x in R^6 such that: +conMatrix= [1,-1,1,0,3,1; +-1,0,-3,-4,5,6; +2,5,3,0,1,0 +0,1,0,1,2,-1; +-1,0,2,1,1,0]; +conLB=[1;2;3;-%inf;-%inf]; +conUB = [1;2;3;-1;2.5]; +lb=[-1000;-10000; 0; -1000; -1000; -1000]; +ub=[10000; 100; 1.5; 100; 100; 1000]; +//and minimize 0.5*x'*Q*x + p'*x with +p=[1; 2; 3; 4; 5; 6]; Q=eye(6,6); +nbVar = 6; +nbCon = 5; +x0 = repmat(0,5,1); +param = list("MaxIter", 300, "CpuTime", 100); +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) + +//Error +//qpipopt: The initial guess of variables is not equal to the number of variables +//at line 231 of function qpipopt called by : +//[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB,x0,param) |