solver

This module contains the definition of the solver class.

prepshot.solver.get_solver(params)[source]

Retrieve the solver object based on parameters.

Parameters

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

Returns

Solver object based on the configuration.

Return type

object

prepshot.solver.set_solver_parameters(model)[source]

Set the solver-specific parameters for the model.

Parameters

model (object) -- Model to configurable.

Return type

None

prepshot.solver.solve_model(model, params)[source]

Solve the model using the provided parameters.

Parameters
  • model (object) -- Model to solve.

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

Returns

True if the model is solved optimally, False otherwise.

Return type

bool