picos.solvers.solver_glpk

Implementation of GLPKSolver.

Classes

class picos.solvers.solver_glpk.GLPKSolver(problem)[source]

Bases: Solver

Interface to the GLPK solver via swiglpk.

__init__(problem)[source]

Initialize a GLPK solver interface.

Parameters

problem (Problem) – The problem to be solved.

classmethod default_penalty()[source]

Implement default_penalty.

classmethod is_free()[source]

Implement is_free.

classmethod names()[source]

Implement names.

reset_problem()[source]

Implement reset_problem.

classmethod supports(footprint, explain=False)[source]

Implement supports.

classmethod test_availability()[source]

Implement test_availability.

SUPPORTED = <Specification: Optimize AffineExpression subject to DummyConstraint, AffineConstraint using any variables and any options.>
UNUSED_VAR = UnusedVar(dim=1)