linopy.solvers.Cplex

linopy.solvers.Cplex#

class linopy.solvers.Cplex(**solver_options)#

Solver subclass for the Cplex solver.

Note if you pass additional solver_options, the key can specify deeper layered parameters, use a dot as a separator here, i.e. **{‘aa.bb.cc’ : x}.

\*\*solver_options

options for the given solver

__init__(**solver_options)#

Methods

__init__(**solver_options)

safe_get_solution(status, func)

Get solution from function call, if status is unknown still try to run it.

solve_problem([model, problem_fn, ...])

Solve a linear problem either from a model or a problem file.

solve_problem_from_file(problem_fn[, ...])

Solve a linear problem from a problem file using the cplex solver.

solve_problem_from_model(model[, ...])

Abstract method to solve a linear problem from a model.

Attributes

solver_name