My probleme is
Minimize
objective: + x_1 + x_2 + x_3 + x_4 + x_5
Subject To
constraint1: + 5 x_1 >= 48
constraint2: + 2 x_2 >= 35
constraint3: + 2 x_3 >= 24
constraint4: + 2 x_4 >= 10
constraint5: + x_5 >= 8
End
Optimal basic solution to my lpi s obtained with glpsol is the
following:
Rows: 5
Columns: 5
Non-zeros: 5
Status: OPTIMAL
Objective: objective = 52.1 (MINimum)
No. Row name St Activity Lower bound Upper bound Marginal
------ ------------ -- --------- ----------- ----------- --------
1 constraint1 NL 48 48 0.2
2 constraint2 NL 35 35 0.5
3 constraint3 NL 24 24 0.5
4 constraint4 NL 10 10 0.5
5 constraint5 NL 8 8 1
No. Column name St Activity Lower bound Upper bound Marginal
------ ------------ -- --------- ----------- ----------- --------
1 x_1 B 9.6 0
2 x_2 B 17.5 0
3 x_3 B 12 0
4 x_4 B 5 0
5 x_5 B 8 0
>From here I wont to get the dual for all rows I should have
0.2
0.5
0.5
0.5
1
but I got 0 for all rows
I use GLPK.glp_get_row_dual(lp,
rowId+1)
Can you tell me where the problem is?
Thank you
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk