[Top][All Lists]

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

Re: [Help-glpk] Some problem with using glp_iptcp() in Java

From: Andrew Makhorin
Subject: Re: [Help-glpk] Some problem with using glp_iptcp() in Java
Date: Tue, 03 Jul 2012 18:01:06 +0400

> Those two code with same row and column, but the answers are
> different. 
> IPTCP always return "0.0" and SMCP return true answer.
> (But both method's result show "OPTIMAL SOLUTION FOUND")

> Did I miss some configure about IPTCP or other stupid mistake?

Both glp_simplex and glp_interior return a code that indicates whether
the instance has been processed successfully to the end (zero) or not
(non-zero). To obtain the objective function value corresponding to the
optimal solution found you need to call glp_get_obj_val or
glp_ipt_obj_val, resp. For more details please see the glpk reference
manual (doc/glpk.pdf) included in the distribution.

> By the way , where could I find other sample code using different
> method with GLPK?

reply via email to

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