solver

This module contains the definition of the solver class.

prepshot.solver.get_solver(params)[源代码]

Retrieve the solver object based on parameters.

参数

params (dict) -- Configuration dictionary with solver details.

返回

Solver object based on the configuration.

返回类型

object

prepshot.solver.set_solver_parameters(model)[源代码]

Set the solver-specific parameters for the model.

参数

model (object) -- Model to configurable.

返回类型

None

prepshot.solver.solve_model(model, params)[源代码]

Solve the model using the provided parameters.

参数
  • model (object) -- Model to solve.

  • params (dict) -- Configuration parameters for solving the model.

返回

True if the model is solved optimally, False otherwise.

返回类型

bool