summaryrefslogtreecommitdiff
path: root/tests/general_tests/symphony/symphony_zeros.sce
blob: a6615f634038cf1532cfdc1166577d0b95e047a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Check for size of Objective Coefficient
// A basic case :

// Objective function
c = [0 0 0]';

// Lower Bound of variable
lb = [];

// Upper Bound of variables
ub = [];

// Constraint Matrix
A = []

// Lower Bound of constrains
conlb = []

// Upper Bound of constrains
conub = []

// Row Matrix for telling symphony that the is integer or not
isInt = [repmat(%f,1,3)];

// Output
//Problem loaded into environment.
//Note: There is no limit on time.
//An optimal solution has been found.
// output  =
// 
//   Iterations: 1
// status  =
// 
//    227.  
// f  =
// 
//    0.  
// x  =
// 
//    0.  
//    0.  
//    0.

// Calling Symphony
[x,f,status,output] = symphony(3,0,c,isInt,lb,ub,A,conlb,conub,-1)