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 GurobiRSOCC(LHSVars, RHSVars, LHSCons, RHSCons, quadCon)

Bases: tuple

static __new__(_cls, LHSVars, RHSVars, LHSCons, RHSCons, quadCon)

Create new instance of GurobiRSOCC(LHSVars, RHSVars, LHSCons, RHSCons, quadCon)

LHSCons

Alias for field number 2

LHSVars

Alias for field number 0

RHSCons

Alias for field number 3

RHSVars

Alias for field number 1

quadCon

Alias for field number 4

class GurobiSOCC(LHSVars, RHSVar, LHSCons, RHSCon, quadCon)

Bases: tuple

static __new__(_cls, LHSVars, RHSVar, LHSCons, RHSCon, quadCon)

Create new instance of GurobiSOCC(LHSVars, RHSVar, LHSCons, RHSCon, quadCon)

LHSCons

Alias for field number 2

LHSVars

Alias for field number 0

RHSCon

Alias for field number 3

RHSVar

Alias for field number 1

quadCon

Alias for field number 4

__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 = <Specification: Optimize AffineExpression, QuadraticExpression subject to DummyConstraint, AffineConstraint, SOCConstraint, RSOCConstraint, ConvexQuadraticConstraint using any variables and any options.>