pm4py.util.lp.variants package#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

Submodules#

pm4py.util.lp.variants.cvxopt_solver module#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

pm4py.util.lp.variants.cvxopt_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#

sol

Solution of the LP problem by the given algorithm

pm4py.util.lp.variants.cvxopt_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#

prim_obj

Primal objective

pm4py.util.lp.variants.cvxopt_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#

points

Point of the solution

pm4py.util.lp.variants.cvxopt_solver_custom_align module#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

pm4py.util.lp.variants.cvxopt_solver_custom_align.custom_solve_lp(c, G, h, A, b)[source]#
pm4py.util.lp.variants.cvxopt_solver_custom_align.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#

sol

Solution of the LP problem by the given algorithm

pm4py.util.lp.variants.cvxopt_solver_custom_align.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#

prim_obj

Primal objective

pm4py.util.lp.variants.cvxopt_solver_custom_align.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#

points

Point of the solution

pm4py.util.lp.variants.cvxopt_solver_custom_align_arm module#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

pm4py.util.lp.variants.cvxopt_solver_custom_align_arm.custom_solve_lp(c, G, h, A, b)[source]#
pm4py.util.lp.variants.cvxopt_solver_custom_align_arm.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#

sol

Solution of the LP problem by the given algorithm

pm4py.util.lp.variants.cvxopt_solver_custom_align_arm.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#

prim_obj

Primal objective

pm4py.util.lp.variants.cvxopt_solver_custom_align_arm.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#

points

Point of the solution

pm4py.util.lp.variants.cvxopt_solver_custom_align_ilp module#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

pm4py.util.lp.variants.cvxopt_solver_custom_align_ilp.check_lp_sol_is_integer(x)[source]#
pm4py.util.lp.variants.cvxopt_solver_custom_align_ilp.custom_solve_ilp(c, G, h, A, b)[source]#
pm4py.util.lp.variants.cvxopt_solver_custom_align_ilp.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#

sol

Solution of the LP problem by the given algorithm

pm4py.util.lp.variants.cvxopt_solver_custom_align_ilp.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#

prim_obj

Primal objective

pm4py.util.lp.variants.cvxopt_solver_custom_align_ilp.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#

points

Point of the solution

pm4py.util.lp.variants.ortools_solver module#

pm4py.util.lp.variants.pulp_solver module#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

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

Bases: Enum

An enumeration.

REQUIRE_ILP = 'require_ilp'#
pm4py.util.lp.variants.pulp_solver.solver(prob)#
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#

stru

String

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#

sol

Solution of the LP problem by the given algorithm

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#

prim_obj

Primal objective

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#

points

Point of the solution

pm4py.util.lp.variants.scipy_solver module#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.util.lp.variants.scipy_solver.Parameters[source]#

Bases: object

INTEGRALITY = 'integrality'#
METHOD = 'method'#
pm4py.util.lp.variants.scipy_solver.apply(c: list, Aub: ndarray, bub: matrix, Aeq: matrix, beq: matrix, parameters: Optional[Dict[Any, Any]] = None) OptimizeResult[source]#
pm4py.util.lp.variants.scipy_solver.get_prim_obj_from_sol(sol: OptimizeResult, parameters: Optional[Dict[Any, Any]] = None) int[source]#
pm4py.util.lp.variants.scipy_solver.get_points_from_sol(sol: OptimizeResult, parameters: Optional[Dict[Any, Any]] = None) List[int][source]#