linopy.solvers.run_glpk

Contents

linopy.solvers.run_glpk#

linopy.solvers.run_glpk(model, io_api=None, problem_fn=None, solution_fn=None, log_fn=None, warmstart_fn=None, basis_fn=None, keep_files=False, env=None, **solver_options)#

Solve a linear problem using the glpk solver.

This function reads the linear problem file and passes it to the glpk solver. If the solution is successful it returns variable solutions and constraint dual values.

For more information on the glpk solver options, see

https://kam.mff.cuni.cz/~elias/glpk.pdf