diff options
Diffstat (limited to 'tests/unit_tests/symphony_base.tst')
-rw-r--r-- | tests/unit_tests/symphony_base.tst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/unit_tests/symphony_base.tst b/tests/unit_tests/symphony_base.tst index 31e7547..2e96146 100644 --- a/tests/unit_tests/symphony_base.tst +++ b/tests/unit_tests/symphony_base.tst @@ -52,6 +52,7 @@ endfunction // if flag <> 1 then pause,end //endfunction +//Reference: Westerberg, Carl-Henrik, Bengt Bjorklund, and Eskil Hultman. "An application of mixed integer programming in a Swedish steel mill." Interfaces 7, no. 2 (1977): 39-43. // Objective function c = [350*5,330*3,310*4,280*6,500,450,400,100]'; @@ -76,9 +77,12 @@ conub = [ 25; 1.25; 1.25] isInt = [repmat(%t,1,4) repmat(%f,1,4)]; // Calling Symphony -[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,conMatrix,conlb,conub,1); +[x,f,iter] = symphony(8,3,c,isInt,lb,ub,conMatrix,conlb,conub,1); + +//In Symphony Library for optimal solution status = 227 +status = sym_getStatus(); assert_close ( x , [1 1 0 1 7.25 0 0.25 3.5]' , 1.e-7 ); assert_close ( f , [ 8495] , 1.e-7 ); assert_checkequal( status , 227 ); - +printf("Test Successful"); |