pm4py.util.lp.variants package

Submodules

pm4py.util.lp.variants.ortools_solver module

pm4py.util.lp.variants.pulp_solver module

class pm4py.util.lp.variants.pulp_solver.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

REQUIRE_ILP = 'require_ilp'
pm4py.util.lp.variants.pulp_solver.apply(c, Aub, bub, Aeq, beq, parameters=None)[source]

Gets the overall solution of the problem

Parameters
  • c – c parameter of the algorithm

  • Aub – A_ub parameter of the algorithm

  • bub – b_ub parameter of the algorithm

  • Aeq – A_eq parameter of the algorithm

  • beq – b_eq parameter of the algorithm

  • parameters – Possible parameters of the algorithm

Returns

Solution of the LP problem by the given algorithm

Return type

sol

pm4py.util.lp.variants.pulp_solver.get_points_from_sol(sol, parameters=None)[source]

Gets the points from the solution

Parameters
  • sol – Solution of the LP problem by the given algorithm

  • parameters – Possible parameters of the algorithm

Returns

Point of the solution

Return type

points

pm4py.util.lp.variants.pulp_solver.get_prim_obj_from_sol(sol, parameters=None)[source]

Gets the primal objective from the solution of the LP problem

Parameters
  • sol – Solution of the ILP problem by the given algorithm

  • parameters – Possible parameters of the algorithm

Returns

Primal objective

Return type

prim_obj

pm4py.util.lp.variants.pulp_solver.get_terminal_part_name_num(num)[source]

Gets the terminal part of the name of a variable

Parameters

nam – Name

Returns

String

Return type

stru

pm4py.util.lp.variants.pulp_solver.solver(prob)

Module contents