Re: [Help-glpk] [Fwd: Solutions upon timeout]

2017-01-17 Thread Heinrich Schuchardt
Hello Pietro,

your message had to be forwarded manually because you are not subscribed
to the GLPK help list, cf.
https://lists.gnu.org/mailman/listinfo/help-glpk

Yes, glp_mip_col_val will return the best known integer
feasible solution.

You can use glp_mip_status to find out if any integer solution exists
and if this solution is optimal.

For a description see glpk-4.60/doc/glpk.pdf of the source distribution
available at
http://ftp.gnu.org/gnu/glpk/glpk-4.60.tar.gz

Best regards

Heinrich

On 01/17/2017 04:58 PM, Andrew Makhorin wrote:
>  Forwarded Message 
> To: help-glpk@gnu.org
> Subject: Solutions upon timeout
> Date: Tue, 17 Jan 2017 14:15:38 +0100
> 
> Hello to everybody. I am using GLPK as a library in a
> software I am writing. My question is: if I set a
> timeout to a MIP search (tm_limit field in a glp_iocp
> structure) and then glp_intopt times out, how do I
> obtain the best known integer feasible solution found so
> far? Is it ok to use glp_mip_col_val?
> Thank you
> Pietro 


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


[Help-glpk] [Fwd: Solutions upon timeout]

2017-01-17 Thread Andrew Makhorin
 Forwarded Message 
From: Pietro Braione 
To: help-glpk@gnu.org
Subject: Solutions upon timeout
Date: Tue, 17 Jan 2017 14:15:38 +0100

Hello to everybody. I am using GLPK as a library in a software I am writing. My 
question is: if I set a timeout to a MIP search (tm_limit field in a glp_iocp 
structure) and then glp_intopt times out, how do I obtain the best known 
integer feasible solution found so far? Is it ok to use glp_mip_col_val?
Thank you
Pietro 



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