help-glpk
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: [Help-glpk] implementing constraints in Scala
From
:
name name
Subject
:
Re: [Help-glpk] implementing constraints in Scala
Date
:
Mon, 8 Aug 2011 21:17:27 +0200
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
reply via email to
[
Prev in Thread
]
Current Thread
[
Next in Thread
]
Re: [Help-glpk] implementing constraints in Scala
,
name name
,
2011/08/01
Re: [Help-glpk] implementing constraints in Scala
,
Xypron
,
2011/08/01
Re: [Help-glpk] implementing constraints in Scala
,
name name
,
2011/08/02
Re: [Help-glpk] implementing constraints in Scala
,
glpk xypron
,
2011/08/02
[Help-glpk] how to use warmup
,
nicolas.derhy
,
2011/08/03
Re: [Help-glpk] how to use warmup
,
Andrew Makhorin
,
2011/08/03
Re: [Help-glpk] implementing constraints in Scala
,
name name
,
2011/08/03
Re: [Help-glpk] implementing constraints in Scala
,
glpk xypron
,
2011/08/05
Re: [Help-glpk] implementing constraints in Scala
,
name name
,
2011/08/08
Re: [Help-glpk] implementing constraints in Scala
,
Andrew Makhorin
,
2011/08/08
Re: [Help-glpk] implementing constraints in Scala
,
name name
<=
Re: [Help-glpk] implementing constraints in Scala
,
Andrew Makhorin
,
2011/08/08
Prev by Date:
Re: [Help-glpk] implementing constraints in Scala
Next by Date:
[Help-glpk] [Fwd: Regarding selecting a next node for branching]
Previous by thread:
Re: [Help-glpk] implementing constraints in Scala
Next by thread:
Re: [Help-glpk] implementing constraints in Scala
Index(es):
Date
Thread