gMCSpy.ProblemInterpreters module

cplexProblemInterpreter(problemDict: dict, optModel, interface, timelimit=100000.0, verbose=0)[source]

The purpose of this function is to interpret the problem dictionary into cplex, so we can solve it. Any problem with the correct format can be solved with this function.

Parameters:
  • problemDict – Dictionary with the problem information

  • interface – Interface to use to solve the problem, this is automatically set by the function setSolver. See the gMCSpy.Utilities.setSolver() function for more information.

Returns:

  • problemInterpreted: An cplex model that contains the solver and the problem to solve.

gurobiProblemInterpreter(problemDict: dict, env, interface, timelimit=100000.0, verbose=0)[source]

The purpose of this function is to interpret the problem dictionary into gurobi, so we can solve it. Any problem with the correct format can be solved with this function.

Parameters:
  • problemDict – Dictionary with the problem information

  • interface – Interface to use to solve the problem, this is automatically set by the function setSolver. See the gMCSpy.Utilities.setSolver() function for more information.

Returns:

  • problemInterpreted: An gurobi model that contains the solver and the problem to solve.

scipProblemInterpreter(problemDict: dict, interface, timelimit=100000.0, verbose=0)[source]