Beispiel #1
0
    ECOS_con(),
    CVXOPT_con(),
    GLPK_con(),
    GLPK_MI_con(),
    CBC_con(),
    SCS_con(),
    GUROBI_con(),
    MOSEK_con(),
    CPLEX_con(),
    NAG_con(),
    XPRESS_con(),
    SCIP_con(),
    SCIPY_con(),
    ECOS_BB_con()
]
solver_qp_intf = [OSQP_qp(), GUROBI_qp(), CPLEX_qp(), XPRESS_qp()]

SOLVER_MAP_CONIC = {solver.name(): solver for solver in solver_conic_intf}
SOLVER_MAP_QP = {solver.name(): solver for solver in solver_qp_intf}

# CONIC_SOLVERS and QP_SOLVERS are sorted in order of decreasing solver
# preference. QP_SOLVERS are those for which we have written interfaces
# and are supported by QpSolver.
CONIC_SOLVERS = [
    s.MOSEK, s.ECOS, s.SCS, s.CPLEX, s.GUROBI, s.GLPK, s.NAG, s.GLPK_MI, s.CBC,
    s.CVXOPT, s.XPRESS, s.DIFFCP, s.SCIP, s.SCIPY, s.ECOS_BB
]
QP_SOLVERS = [s.OSQP, s.GUROBI, s.CPLEX, s.XPRESS]
MI_SOLVERS = [
    s.GLPK_MI, s.MOSEK, s.GUROBI, s.CPLEX, s.XPRESS, s.CBC, s.SCIP, s.ECOS_BB
]
Beispiel #2
0
    import SCIPY as SCIPY_con

# QP interfaces
from cvxpy.reductions.solvers.qp_solvers.osqp_qpif import OSQP as OSQP_qp
from cvxpy.reductions.solvers.qp_solvers.gurobi_qpif import GUROBI as GUROBI_qp
from cvxpy.reductions.solvers.qp_solvers.cplex_qpif import CPLEX as CPLEX_qp
from cvxpy.reductions.solvers.qp_solvers.xpress_qpif import XPRESS as XPRESS_qp

solver_conic_intf = [DIFFCP_con(), ECOS_con(),
                     CVXOPT_con(), GLPK_con(),
                     GLPK_MI_con(), CBC_con(), SCS_con(),
                     GUROBI_con(), MOSEK_con(), CPLEX_con(), NAG_con(), XPRESS_con(),
                     SCIP_con(), SCIPY_con(), ECOS_BB_con()]
solver_qp_intf = [OSQP_qp(),
                  GUROBI_qp(),
                  CPLEX_qp(),
                  XPRESS_qp()
                  ]

SOLVER_MAP_CONIC = {solver.name(): solver for solver in solver_conic_intf}
SOLVER_MAP_QP = {solver.name(): solver for solver in solver_qp_intf}

# CONIC_SOLVERS and QP_SOLVERS are sorted in order of decreasing solver
# preference. QP_SOLVERS are those for which we have written interfaces
# and are supported by QpSolver.
CONIC_SOLVERS = [s.MOSEK, s.ECOS, s.SCS,
                 s.CPLEX, s.GUROBI, s.GLPK, s.NAG,
                 s.GLPK_MI, s.CBC, s.CVXOPT, s.XPRESS, s.DIFFCP,
                 s.SCIP, s.SCIPY, s.ECOS_BB]
QP_SOLVERS = [s.OSQP,
              s.GUROBI,