[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] not retrieving integer solutions
From: |
Robbie Morrison |
Subject: |
Re: [Help-glpk] not retrieving integer solutions |
Date: |
Fri, 13 Jul 2012 13:44:47 +1200 |
User-agent: |
SquirrelMail/1.4.22 |
Hello Marc
------------------------------------------------------------
To: "address@hidden" <address@hidden>
Subject: [Help-glpk] not retrieving integer solutions
Message-ID: <address@hidden>
From: "Meketon, Marc" <address@hidden>
Date: Thu, 12 Jul 2012 17:14:39 -0500
------------------------------------------------------------
> I am solving a small integer program (37 rows and 29
> columns) using the C# interface from
> http://yoyovicks.blog.free.fr/
>
> I've tested the code on quite a few datasets and it
> worked fine. But today I changed some objective
> function coefficients (just changed the sign of them),
> and for one particular problem I'm retrieving
> non-integer results despite the fact that an integer
> optimal was found.
>
> [snip: code and results]
>
> Would anyone have a guess why the output is non-integer
> despite solving to integer optimality and
> double-checking that these variables are integer?
>
> BTW, when I write the problem out to GLPK format, and
> solve it using glpsol, the output is fully integer.
Please see:
http://en.wikibooks.org/wiki/GLPK/Troubleshooting#Continuous_solution_to_mixed-integer_problem
Could a be a bug in the C# wrapper or your
use of the wrong calls?
(Given C# supports polymorphism, could this
wrapper not be written to proved the correct
recovery using a generic interface?)
Robbie
---
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Institute for Energy Engineering (IET)
Technical University of Berlin (TU-Berlin), Germany
University email (redirected) : address@hidden
Webmail (preferred) : address@hidden
[from Webmail client]