> 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". _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
