summaryrefslogtreecommitdiff
path: root/tests/general_tests/ecos
diff options
context:
space:
mode:
authorGeorgey2017-07-05 11:42:11 +0530
committerGeorgey2017-07-05 11:42:11 +0530
commit536bbd0cd8e4ca5b29d07e472e682bbb5db63a97 (patch)
tree7b7c9ee9b99de05aa95db57063a3ca2f84a846eb /tests/general_tests/ecos
parent938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427 (diff)
downloadFOSSEE-Optimization-toolbox-536bbd0cd8e4ca5b29d07e472e682bbb5db63a97.tar.gz
FOSSEE-Optimization-toolbox-536bbd0cd8e4ca5b29d07e472e682bbb5db63a97.tar.bz2
FOSSEE-Optimization-toolbox-536bbd0cd8e4ca5b29d07e472e682bbb5db63a97.zip
Updated tests for int and ecos functions
Diffstat (limited to 'tests/general_tests/ecos')
-rw-r--r--tests/general_tests/ecos/ecos_A2.sce22
-rw-r--r--tests/general_tests/ecos/ecos_A3.sce20
-rw-r--r--tests/general_tests/ecos/ecos_A4.sce24
-rw-r--r--tests/general_tests/ecos/ecos_G1.sce19
-rw-r--r--tests/general_tests/ecos/ecos_G2.sce22
-rw-r--r--tests/general_tests/ecos/ecos_G3.sce20
-rw-r--r--tests/general_tests/ecos/ecos_G4.sce22
-rw-r--r--tests/general_tests/ecos/ecos_G5.sce19
-rw-r--r--tests/general_tests/ecos/ecos_a1.sce21
-rw-r--r--tests/general_tests/ecos/ecos_b1.sce23
-rw-r--r--tests/general_tests/ecos/ecos_b2.sce23
-rw-r--r--tests/general_tests/ecos/ecos_c.sce21
-rw-r--r--tests/general_tests/ecos/ecos_c1.sce22
-rw-r--r--tests/general_tests/ecos/ecos_c2.sce22
-rw-r--r--tests/general_tests/ecos/ecos_dims1.sce25
-rw-r--r--tests/general_tests/ecos/ecos_dims2.sce22
-rw-r--r--tests/general_tests/ecos/ecos_e1.sce23
-rw-r--r--tests/general_tests/ecos/ecos_h1.sce24
-rw-r--r--tests/general_tests/ecos/ecos_h2.sce23
-rw-r--r--tests/general_tests/ecos/ecos_h3.sce23
-rw-r--r--tests/general_tests/ecos/ecos_infeasible.sce11
-rw-r--r--tests/general_tests/ecos/ecos_infeasible1.sce12
-rw-r--r--tests/general_tests/ecos/ecos_l1.sce24
-rw-r--r--tests/general_tests/ecos/ecos_q1.sce22
-rw-r--r--tests/general_tests/ecos/ecos_unbounded.sce12
25 files changed, 521 insertions, 0 deletions
diff --git a/tests/general_tests/ecos/ecos_A2.sce b/tests/general_tests/ecos/ecos_A2.sce
new file mode 100644
index 0000000..ca6e702
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_A2.sce
@@ -0,0 +1,22 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Number of columns of G and A do not match
+// at line 208 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_A2.sce
diff --git a/tests/general_tests/ecos/ecos_A3.sce b/tests/general_tests/ecos/ecos_A3.sce
new file mode 100644
index 0000000..1848466
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_A3.sce
@@ -0,0 +1,20 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// ecos: One of A and b is empty matrix
+// at line 200 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 15 of exec file called by :
+// exec ecos_A3.sce
diff --git a/tests/general_tests/ecos/ecos_A4.sce b/tests/general_tests/ecos/ecos_A4.sce
new file mode 100644
index 0000000..0bb8c23
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_A4.sce
@@ -0,0 +1,24 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1;
+ 1 2
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected Column Vector (number of linear inequality constraints X 1) for b
+// at line 23 of function lincon called by :
+// at line 207 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 17 of exec file called by :
+// exec ecos_A4.sce
diff --git a/tests/general_tests/ecos/ecos_G1.sce b/tests/general_tests/ecos/ecos_G1.sce
new file mode 100644
index 0000000..05919ee
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_G1.sce
@@ -0,0 +1,19 @@
+c = [-750 -1000];
+G = "a";
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected type ["constant"] for input argument G at input #2, but got "string" instead.
+// at line 56 of function Checktype called by :
+// at line 124 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 12 of exec file called by :
+// exec ecos_G1.sce
diff --git a/tests/general_tests/ecos/ecos_G2.sce b/tests/general_tests/ecos/ecos_G2.sce
new file mode 100644
index 0000000..ee4aab0
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_G2.sce
@@ -0,0 +1,22 @@
+c = [-750 -1000];
+G = [
+ 1;
+ 1;
+ 4;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Number of columns of G and c do not match
+// at line 133 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_G2.sce \ No newline at end of file
diff --git a/tests/general_tests/ecos/ecos_G3.sce b/tests/general_tests/ecos/ecos_G3.sce
new file mode 100644
index 0000000..c03e2f9
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_G3.sce
@@ -0,0 +1,20 @@
+c = [-750 -1000];
+G = [
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: As Linear Inequality Constraint coefficient Matrix G is empty, h should also be empty
+// at line 15 of function lincon called by :
+// at line 144 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 13 of exec file called by :
+// exec ecos_G3.sce
diff --git a/tests/general_tests/ecos/ecos_G4.sce b/tests/general_tests/ecos/ecos_G4.sce
new file mode 100644
index 0000000..1873ad2
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_G4.sce
@@ -0,0 +1,22 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected Matrix of size (No of linear inequality constraints X No of Variables) or an Empty Matrix for Linear Inequality Constraint coefficient Matrix G
+// at line 7 of function lincon called by :
+// at line 144 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 15 of exec file called by :
+// exec ecos_G4.sce
diff --git a/tests/general_tests/ecos/ecos_G5.sce b/tests/general_tests/ecos/ecos_G5.sce
new file mode 100644
index 0000000..8e98651
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_G5.sce
@@ -0,0 +1,19 @@
+c = [-750 -1000];
+G = [
+ ];
+h = []';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Number of columns of G and c do not match
+// at line 146 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 13 of exec file called by :
+// exec ecos_G5.sce
diff --git a/tests/general_tests/ecos/ecos_a1.sce b/tests/general_tests/ecos/ecos_a1.sce
new file mode 100644
index 0000000..ca7b73f
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_a1.sce
@@ -0,0 +1,21 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = "a"
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected type ["constant"] for input argument A at input #5, but got "string" instead.
+// at line 56 of function Checktype called by :
+// at line 199 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 14 of exec file called by :
+// exec ecos_a1.sce
diff --git a/tests/general_tests/ecos/ecos_b1.sce b/tests/general_tests/ecos/ecos_b1.sce
new file mode 100644
index 0000000..63d6215
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_b1.sce
@@ -0,0 +1,23 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5 5]';
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected Column Vector (number of linear inequality constraints X 1) for b
+// at line 23 of function lincon called by :
+// at line 207 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_b1.sce
diff --git a/tests/general_tests/ecos/ecos_b2.sce b/tests/general_tests/ecos/ecos_b2.sce
new file mode 100644
index 0000000..c964156
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_b2.sce
@@ -0,0 +1,23 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b="a";
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected type ["constant"] for input argument b at input #6, but got "string" instead.
+// at line 56 of function Checktype called by :
+// at line 205 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_b2.sce
diff --git a/tests/general_tests/ecos/ecos_c.sce b/tests/general_tests/ecos/ecos_c.sce
new file mode 100644
index 0000000..5358283
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_c.sce
@@ -0,0 +1,21 @@
+c = [];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// ecos: c should be a row vector
+// at line 116 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_c.sce
diff --git a/tests/general_tests/ecos/ecos_c1.sce b/tests/general_tests/ecos/ecos_c1.sce
new file mode 100644
index 0000000..a7e0761
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_c1.sce
@@ -0,0 +1,22 @@
+c = "a";
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// ecos: Expected type ["constant"] for input argument c at input #1, but got "string" instead.
+// at line 56 of function Checktype called by :
+// at line 112 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_c1.sce
diff --git a/tests/general_tests/ecos/ecos_c2.sce b/tests/general_tests/ecos/ecos_c2.sce
new file mode 100644
index 0000000..55639a3
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_c2.sce
@@ -0,0 +1,22 @@
+c = [-750];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Number of columns of G and c do not match
+// at line 133 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_c2.sce
diff --git a/tests/general_tests/ecos/ecos_dims1.sce b/tests/general_tests/ecos/ecos_dims1.sce
new file mode 100644
index 0000000..f3ed767
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_dims1.sce
@@ -0,0 +1,25 @@
+
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=[3,0,0]
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected type ["list"] for input argument dims at input #4, but got "constant" instead.
+// at line 56 of function Checktype called by :
+// at line 155 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 17 of exec file called by :
+// exec ecos_dims1.sce
+
diff --git a/tests/general_tests/ecos/ecos_dims2.sce b/tests/general_tests/ecos/ecos_dims2.sce
new file mode 100644
index 0000000..beccb4a
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_dims2.sce
@@ -0,0 +1,22 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("a",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Unrecognized parameter name a.
+// at line 198 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_dims2.sce
diff --git a/tests/general_tests/ecos/ecos_e1.sce b/tests/general_tests/ecos/ecos_e1.sce
new file mode 100644
index 0000000..6a0e071
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_e1.sce
@@ -0,0 +1,23 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = "a"
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected type ["constant"] for input argument e at input #4, but got "string" instead.
+// at line 56 of function Checktype called by :
+// at line 189 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_e1.sce
diff --git a/tests/general_tests/ecos/ecos_h1.sce b/tests/general_tests/ecos/ecos_h1.sce
new file mode 100644
index 0000000..9fd5130
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_h1.sce
@@ -0,0 +1,24 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25];
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected Column vector of size (Number of constraints) for h
+// at line 7 of function lincon called by :
+// at line 144 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_h1.sce
+
diff --git a/tests/general_tests/ecos/ecos_h2.sce b/tests/general_tests/ecos/ecos_h2.sce
new file mode 100644
index 0000000..6345b83
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_h2.sce
@@ -0,0 +1,23 @@
+
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = []';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b); !--error 10000
+// ecos: Expected Non empty Row/Column Vector for h for your Inputs
+// at line 20 of function lincon called by :
+// at line 144 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 17 of exec file called by :
+// exec ecos_h2.sce
diff --git a/tests/general_tests/ecos/ecos_h3.sce b/tests/general_tests/ecos/ecos_h3.sce
new file mode 100644
index 0000000..05592de
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_h3.sce
@@ -0,0 +1,23 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = "a";
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected type ["constant"] for input argument h at input #3, but got "string" instead.
+// at line 56 of function Checktype called by :
+// at line 141 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_h3.sce
diff --git a/tests/general_tests/ecos/ecos_infeasible.sce b/tests/general_tests/ecos/ecos_infeasible.sce
new file mode 100644
index 0000000..96f175f
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_infeasible.sce
@@ -0,0 +1,11 @@
+c = [-2 1];
+G = [
+ 1 -1;
+ -1 1;
+ ];
+h = [1 -2]';
+l = [2];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims);
diff --git a/tests/general_tests/ecos/ecos_infeasible1.sce b/tests/general_tests/ecos/ecos_infeasible1.sce
new file mode 100644
index 0000000..968e0b4
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_infeasible1.sce
@@ -0,0 +1,12 @@
+c = [3.0, 5, 6, 9, -10, 10];
+ G = [
+ 2. -6. 3. -4. -1. 2. ;
+ 5. 3. -1. -3. 2. -1. ;
+ -5. 1. -4. 2. -2. 1.
+ ];
+ h = [-2.0, 2, -3]';
+ l = [3];
+ q = [];
+ e = []
+ dims=list("l",l,"q",q,"e",e)
+ [x,y,s,z,info,status] =ecos(c,G,h,dims); \ No newline at end of file
diff --git a/tests/general_tests/ecos/ecos_l1.sce b/tests/general_tests/ecos/ecos_l1.sce
new file mode 100644
index 0000000..b27fa29
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_l1.sce
@@ -0,0 +1,24 @@
+
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = "a";
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: Expected type ["constant"] for input argument l at input #4, but got "string" instead.
+// at line 56 of function Checktype called by :
+// at line 165 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 17 of exec file called by :
+// exec ecos_l1.sce
diff --git a/tests/general_tests/ecos/ecos_q1.sce b/tests/general_tests/ecos/ecos_q1.sce
new file mode 100644
index 0000000..211fd4e
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_q1.sce
@@ -0,0 +1,22 @@
+c = [-750 -1000];
+G = [
+ 1 1;
+ 1 2;
+ 4 3;
+ ];
+h = [10 15 25]';
+A = [
+ 0.5 1
+];
+b=[7.5];
+l = [3];
+q = "a";
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// !--error 10000
+// ecos: l in dims should be a positive integer
+// at line 173 of function ecos called by :
+// [x,y,s,z,info,status] =ecos(c,G,h,dims,A,b);
+// at line 16 of exec file called by :
+// exec ecos_q1.sce
diff --git a/tests/general_tests/ecos/ecos_unbounded.sce b/tests/general_tests/ecos/ecos_unbounded.sce
new file mode 100644
index 0000000..b28daee
--- /dev/null
+++ b/tests/general_tests/ecos/ecos_unbounded.sce
@@ -0,0 +1,12 @@
+c = [1 1];
+G = [
+ -1 0;
+ -1 0
+ ];
+h = [0 0]';
+
+l = [2];
+q = [];
+e = []
+dims=list("l",l,"q",q,"e",e)
+[x,y,s,z,info,status] =ecos(c,G,h,dims); \ No newline at end of file