I have this problem
\* Problem: Unknown *\
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
After solving I got this
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
then I pass to dual with
GLPK.glp_get_row_dual(lp,rowId+1) (which give all 0)
I got error when I try to make bounds with
GLPK.glp_set_col_bnds(lp, colId+1, GLPKConstants.GLP_DB, low, up)
On Fri, Aug 5, 2011 at 7:31 PM, glpk xypron <[email protected]> wrote:
> Hello Onor,
>
> please, provide the Java code which produces the error.
>
> Best regards
>
> Xypron
>
> -------- Original-Nachricht --------
> > Datum: Wed, 3 Aug 2011 15:09:33 +0200
> > Betreff: Re: [Help-glpk] implementing constraints in Scala
>
> > Hello again,
> >
> > I have one more question :(
> > This time I have a problem with dual
> > I get dual (all the lines with GLPK.glp_get_col_dual(lp,colId+1)
> > but just after when it's going to put bounds I got an error
> >
> > A fatal error has been detected by the Java Runtime Environment:
> > #
> > # SIGSEGV (0xb) at pc=0x00007f0cca36a1c4, pid=6605, tid=139692915328768
> > #
> > # JRE version: 6.0_26-b03
> > # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode
> > linux-amd64 compressed oops)
> > # Problematic frame:
> > # C [libglpk.so.0+0x91c4] __float128+0x14
> >
> >
> > Whot can I do ?
> >
> > Thank you again
> >
> > Onor
>
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
>
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk