[Top][All Lists]

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

Re: [Help-glpk] Linear Programming in Java using GLPK and MathProg

From: Andrew Makhorin
Subject: Re: [Help-glpk] Linear Programming in Java using GLPK and MathProg
Date: Tue, 11 Dec 2007 14:04:38 +0300

> I am writing a university timetabling language and solver in Java and
>  I want to use the linear programming approach. I want to use a free 
>  solver and GLPK seems to be a good candidate. I intend the program to
>  translate the timetabling problem into MathProg format and let the 
>  solver solves it. It seems that readModel in GlpkSolver allows me to 
>  do this, however it seems to output the result of the calculation in a
>  file, is it possible to access parts of the solution without going to 
>  the file? Can I access the values, e.g. the value of the objective 
>  function in some ways? 

To obtain solution components you can use glpk api routines
glp_mip_status, glp_mip_obj_val, glp_mip_row_val, and glp_mip_col_val.
For more details see the reference manual, section "Mixed integer
programming routines".

reply via email to

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