picos.solvers.solver_gurobi

Implementation of GurobiSolver.

Classes

class picos.solvers.solver_gurobi.GurobiSolver(problem)[source]

Bases: picos.solvers.solver.Solver

Interface to the Gurobi solver via its official Python interface.

class GurobiMetaConstraint(auxCons, auxVars)

Bases: tuple

static __new__(_cls, auxCons, auxVars)

Create new instance of GurobiMetaConstraint(auxCons, auxVars)

auxCons

Alias for field number 0

auxVars

Alias for field number 1

__init__(problem)[source]

Initialize a Gurobi 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_8 = <Specification: Optimize AffineExpression, QuadraticExpression subject to DummyConstraint, AffineConstraint, SOCConstraint, RSOCConstraint, ConvexQuadraticConstraint using any variables and any options.>
SUPPORTED_9 = <Specification: Optimize AffineExpression, QuadraticExpression subject to DummyConstraint, AffineConstraint, SOCConstraint, RSOCConstraint, NonconvexQuadraticConstraint using any variables and any options.>
property matint

Whether Gurobi’s matrix interface is in use.