help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Binary variable with fractional value


From: caseyh
Subject: Re: [Help-glpk] Binary variable with fractional value
Date: Tue, 27 Sep 2011 12:06:32 -0400
User-agent: Internet Messaging Program (IMP) 4.3.3

I'm not getting fractional values for 0-1 variables when I use glpk from GNU Octave; so I imagine Octave is doing something behind the scenes before it calls glpk.



Quoting Robbie Morrison <address@hidden>:

------------------------------------------------------------
To:          "\"Benjamin" D?ring" <address@hidden>
Subject:      Re: [Help-glpk] Binary variable with fractional value
Message-ID:  <address@hidden>
From:         Andrew Makhorin <address@hidden>
Date:         Mon, 26 Sep 2011 18:31:38 +0400
------------------------------------------------------------

Im using the GLPK package to build a scheduler in Java.

Even when I use the GLPK.glp_set_col_kind(lp, i,
GLPKConstants.GLP_BV) binary Variable, I get
fractional results like 0.5.

What am I doing wrong?

Please see:

  http://lists.gnu.org/archive/html/help-glpk/2011-09/msg00035.html

Hi Benjamin

Just for the record, this issue is also written up in
the GLPK wikibook.  Please see the troubleshooting page:

http://en.wikibooks.org/wiki/GLPK/Troubleshooting#Continuous_solution_to_mixed-integer_problem

There is also quite a lot of info on java too:

  http://en.wikibooks.org/wiki/GLPK/Java

cheers, Robbie
(ps: Andrew: ill-formed email address as you suggested .. oops)
---
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Technical University of Berlin (TU-Berlin), Germany
University email (redirected) : address@hidden
Webmail (preferred)           : address@hidden
[from Webmail client]





_______________________________________________
Help-glpk mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-glpk







reply via email to

[Prev in Thread] Current Thread [Next in Thread]