summaryrefslogtreecommitdiff
path: root/tests/general_tests/symphonymat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general_tests/symphonymat')
-rw-r--r--tests/general_tests/symphonymat/symphonymat_b1.sce10
-rw-r--r--tests/general_tests/symphonymat/symphonymat_c1.sce7
-rw-r--r--tests/general_tests/symphonymat/symphonymat_infeasible.sce8
-rw-r--r--tests/general_tests/symphonymat/symphonymat_input1.sce7
-rw-r--r--tests/general_tests/symphonymat/symphonymat_input2.sce8
-rw-r--r--tests/general_tests/symphonymat/symphonymat_intcon1.sce12
-rw-r--r--tests/general_tests/symphonymat/symphonymat_intcon2.sce10
-rw-r--r--tests/general_tests/symphonymat/symphonymat_intcon3.sce8
-rw-r--r--tests/general_tests/symphonymat/symphonymat_lb1.sce8
-rw-r--r--tests/general_tests/symphonymat/symphonymat_logical1.sce10
-rw-r--r--tests/general_tests/symphonymat/symphonymat_logical2.sce11
-rw-r--r--tests/general_tests/symphonymat/symphonymat_options1.sce8
-rw-r--r--tests/general_tests/symphonymat/symphonymat_options2.sce7
-rw-r--r--tests/general_tests/symphonymat/symphonymat_ub1.sce8
14 files changed, 78 insertions, 44 deletions
diff --git a/tests/general_tests/symphonymat/symphonymat_b1.sce b/tests/general_tests/symphonymat/symphonymat_b1.sce
index 68975c3..26c6ddb 100644
--- a/tests/general_tests/symphonymat/symphonymat_b1.sce
+++ b/tests/general_tests/symphonymat/symphonymat_b1.sce
@@ -1,4 +1,4 @@
-// Check for size of Objective Coefficients
+// Check for size of equality constraint upper bound
// Objective function
c = [350*5,330*3,310*4,280*6,500,450,400,100]';
@@ -17,10 +17,12 @@ beq = [ 25, 1.25]
intcon = [1 2 3 4];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
-
//Error
//Symphonymat: The equality constraint upper bound is not equal to the number of equality constraint
//at line 239 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+
diff --git a/tests/general_tests/symphonymat/symphonymat_c1.sce b/tests/general_tests/symphonymat/symphonymat_c1.sce
index 6b8d5f8..990fcd1 100644
--- a/tests/general_tests/symphonymat/symphonymat_c1.sce
+++ b/tests/general_tests/symphonymat/symphonymat_c1.sce
@@ -17,10 +17,11 @@ beq = [ 25, 1.25, 1.25]
intcon = [1 2 3 4];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
-
//Error
//Symphonymat: Objective Coefficients should be a column matrix
//at line 160 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
diff --git a/tests/general_tests/symphonymat/symphonymat_infeasible.sce b/tests/general_tests/symphonymat/symphonymat_infeasible.sce
index ed393e9..0f73480 100644
--- a/tests/general_tests/symphonymat/symphonymat_infeasible.sce
+++ b/tests/general_tests/symphonymat/symphonymat_infeasible.sce
@@ -2,4 +2,12 @@
C = -1 * [1 1]'
A = [-1 0; 0, -1; 1 1]
b = [-6 -6 11]
+
+//Output
+//Problem loaded into environment.
+//Note: There is no limit on time.
+//This problem is infeasible.
+
[xopt, fopt, exitflag, output] = symphonymat(C,1,A,b);
+
+
diff --git a/tests/general_tests/symphonymat/symphonymat_input1.sce b/tests/general_tests/symphonymat/symphonymat_input1.sce
index b5ee515..00f2aa0 100644
--- a/tests/general_tests/symphonymat/symphonymat_input1.sce
+++ b/tests/general_tests/symphonymat/symphonymat_input1.sce
@@ -17,10 +17,11 @@ beq = [ 25, 1.25, 1.25]
intcon = [1 2 3 4];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,[],[])
-
//Error
//Symphony: Unexpected number of input arguments : 10 provided while should be in the set [4 6 8 9]
//at line 149 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,[],[])
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,[],[])
+
diff --git a/tests/general_tests/symphonymat/symphonymat_input2.sce b/tests/general_tests/symphonymat/symphonymat_input2.sce
index 4be6d87..ee733d4 100644
--- a/tests/general_tests/symphonymat/symphonymat_input2.sce
+++ b/tests/general_tests/symphonymat/symphonymat_input2.sce
@@ -17,10 +17,12 @@ beq = [ 25, 1.25, 1.25]
intcon = [1 2 3 4];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon)
-
//Error
//Symphony: Unexpected number of input arguments : 2 provided while should be in the set [4 6 8 9]
//at line 149 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon)
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon)
+
+
diff --git a/tests/general_tests/symphonymat/symphonymat_intcon1.sce b/tests/general_tests/symphonymat/symphonymat_intcon1.sce
index 0c24f4c..ded8469 100644
--- a/tests/general_tests/symphonymat/symphonymat_intcon1.sce
+++ b/tests/general_tests/symphonymat/symphonymat_intcon1.sce
@@ -1,4 +1,4 @@
-// Check for size of Objective Coefficients
+// Check if the user provides a value greater than the number of variables in intcon
// Objective function
c = [350*5,330*3,310*4,280*6,500,450,400,100]';
@@ -17,10 +17,12 @@ beq = [ 25, 1.25, 1.25]
intcon = [1 2 3 10];
+//Error
+//Symphonymat: The values inside intcon should be less than the number of variables
+//at line 238 of function symphonymat called by :
+//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
// Calling Symphony
[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
-//Error
-//Symphonymat: Objective Coefficients should be a column matrix
-//at line 160 of function symphonymat called by :
-//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
diff --git a/tests/general_tests/symphonymat/symphonymat_intcon2.sce b/tests/general_tests/symphonymat/symphonymat_intcon2.sce
index 47b7572..9df4d64 100644
--- a/tests/general_tests/symphonymat/symphonymat_intcon2.sce
+++ b/tests/general_tests/symphonymat/symphonymat_intcon2.sce
@@ -1,4 +1,4 @@
-// Check for size of Objective Coefficients
+// Check if the user provides a value less than 0
// Objective function
c = [350*5,330*3,310*4,280*6,500,450,400,100]';
@@ -17,10 +17,12 @@ beq = [ 25, 1.25, 1.25]
intcon = [1 2 3 -10];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
-
//Error
//Symphonymat: The values inside intcon should be greater than 0
//at line 218 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+
diff --git a/tests/general_tests/symphonymat/symphonymat_intcon3.sce b/tests/general_tests/symphonymat/symphonymat_intcon3.sce
index e644967..a7d27ff 100644
--- a/tests/general_tests/symphonymat/symphonymat_intcon3.sce
+++ b/tests/general_tests/symphonymat/symphonymat_intcon3.sce
@@ -17,10 +17,12 @@ beq = [ 25, 1.25, 1.25]
intcon = [1 2 3.5 4];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
-
//Error
//Symphonymat: The values inside intcon should be integer
//at line 223 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+
diff --git a/tests/general_tests/symphonymat/symphonymat_lb1.sce b/tests/general_tests/symphonymat/symphonymat_lb1.sce
index f9a4b29..fee0556 100644
--- a/tests/general_tests/symphonymat/symphonymat_lb1.sce
+++ b/tests/general_tests/symphonymat/symphonymat_lb1.sce
@@ -17,10 +17,12 @@ beq = [ 25, 1.25, 1.25]
intcon = [1 2 3 4];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
-
//Error
//Symphonymat: The Lower Bound is not equal to the number of variables
//at line 245 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+
diff --git a/tests/general_tests/symphonymat/symphonymat_logical1.sce b/tests/general_tests/symphonymat/symphonymat_logical1.sce
index 70ad9f8..ced5e26 100644
--- a/tests/general_tests/symphonymat/symphonymat_logical1.sce
+++ b/tests/general_tests/symphonymat/symphonymat_logical1.sce
@@ -1,3 +1,5 @@
+// An example with equality constraints, variable bounds and options to set
+
// Objective function
c = [350*5,330*3,310*4,280*6,500,450,400,100]';
@@ -18,9 +20,6 @@ intcon = [1 2 3 4 4];
options = list("time_limit",250);
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options)
-disp("x",x,"f",f,"status",status,"output",output);
//Output
//setting of double parameter function executed successfully
//Problem loaded into environment.
@@ -53,3 +52,8 @@ disp("x",x,"f",f,"status",status,"output",output);
// 3.5
//
// x
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options)
+disp("x",x,"f",f,"status",status,"output",output);
+
diff --git a/tests/general_tests/symphonymat/symphonymat_logical2.sce b/tests/general_tests/symphonymat/symphonymat_logical2.sce
index 6bdd1b3..4f3923f 100644
--- a/tests/general_tests/symphonymat/symphonymat_logical2.sce
+++ b/tests/general_tests/symphonymat/symphonymat_logical2.sce
@@ -1,4 +1,5 @@
-// Check for size of Objective Coefficient
+// An example with equality constraints and variable bounds
+
// A basic case :
// Objective function
@@ -22,9 +23,6 @@ b = [ 55;26;30;57]
// Row Matrix for telling symphony that the is integer or not
intcon = [];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,A,b,[],[],lb,ub)
-disp("x",x,"f",f,"status",status,"output",output);
// Output
//Problem loaded into environment.
//
@@ -51,3 +49,8 @@ disp("x",x,"f",f,"status",status,"output",output);
// 1.6
//
// x
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,A,b,[],[],lb,ub)
+disp("x",x,"f",f,"status",status,"output",output);
+
diff --git a/tests/general_tests/symphonymat/symphonymat_options1.sce b/tests/general_tests/symphonymat/symphonymat_options1.sce
index 8da8547..01d293e 100644
--- a/tests/general_tests/symphonymat/symphonymat_options1.sce
+++ b/tests/general_tests/symphonymat/symphonymat_options1.sce
@@ -19,10 +19,12 @@ intcon = [1 2 3 4];
options = list("time_limit");
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options)
-
//Error
//Symphonymat: Size of parameters should be even
//at line 272 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options)
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options)
+
+
diff --git a/tests/general_tests/symphonymat/symphonymat_options2.sce b/tests/general_tests/symphonymat/symphonymat_options2.sce
index 89d3e14..2b7792c 100644
--- a/tests/general_tests/symphonymat/symphonymat_options2.sce
+++ b/tests/general_tests/symphonymat/symphonymat_options2.sce
@@ -19,10 +19,11 @@ intcon = [1 2 3 4];
options = ["time_limit" 250];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options)
-
//Error
//Symphonymat: Options should be a list
//at line 266 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options)
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options)
+
diff --git a/tests/general_tests/symphonymat/symphonymat_ub1.sce b/tests/general_tests/symphonymat/symphonymat_ub1.sce
index fdf345a..82237f2 100644
--- a/tests/general_tests/symphonymat/symphonymat_ub1.sce
+++ b/tests/general_tests/symphonymat/symphonymat_ub1.sce
@@ -17,10 +17,12 @@ beq = [ 25, 1.25, 1.25]
intcon = [1 2 3 4];
-// Calling Symphony
-[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
-
//Error
//Symphonymat: The Upper Bound is not equal to the number of variables
//at line 251 of function symphonymat called by :
//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+// Calling Symphony
+[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub)
+
+