summaryrefslogtreecommitdiff
path: root/tests/general_tests/linprog/linprog_dual_infeasible1.sce
blob: 9b910f4560ae24c9a20f058ec0bb623d06bef5fb (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
 //Dual Infeasible Problem
 c=[3,5,-7]'
 A=[-1,-1,4;1,1,4]
 b=[-8,5]
 Aeq=[]
 beq=[]
 lb=[-%inf,-%inf,-%inf]
 ub=[%inf,%inf,%inf]
 //Output
 // Dual Infeasible.
 // lambda  =
 // 
 //   reduced_cost: [0,2,0] 
 //   ineqlin: [-2.375,0.625]
 //   eqlin: [0x0 constant]
 // output  =
 // 
 //   Iterations: 2
 //   constrviolation: 0
 // exitflag  =
 // 
 //    2.  
 // fopt  =
 // 
 //    22.125  
 // xopt  =
 // 
 //    6.5    
 //    0.     
 //  - 0.375  
 [xopt,fopt,exitflag,output,lambda]= linprog(c,A,b,Aeq,beq,lb,ub)