freeflux.solver.lpsolver ======================== .. py:module:: freeflux.solver.lpsolver .. autoapi-nested-parse:: Define the FBAModel class. Attributes ---------- .. autoapisummary:: freeflux.solver.lpsolver.__author__ Classes ------- .. autoapisummary:: freeflux.solver.lpsolver.FBAModel Module Contents --------------- .. py:data:: __author__ :value: 'Chao Wu' .. py:class:: FBAModel .. py:attribute:: model .. py:method:: build_flux_variables(fluxids, flux_bounds) :param fluxids: Flux IDs. :type fluxids: list :param flux_bounds: Reaction ID => [lower bound, upper bound]. :type flux_bounds: dict .. py:method:: build_objective(objective, direction) :param objective: Reaction ID => coefficient, i.e., objective function. :type objective: dict :param direction: Optimization direction. :type direction: {"max", "min"} .. py:method:: build_mass_balance_constraints(stoy_mat) :param stoy_mat: Stoichiometric matrix. :type stoy_mat: df .. py:method:: build_objective_constraint(objective, max_obj, gamma) :param objective: Reaction ID => coefficient, i.e., objective function. :type objective: dict :param max_obj: Optimal objective. :type max_obj: float :param gamma: A value in [0, 1]. :type gamma: float .. py:method:: remove_objective() .. py:method:: solve_flux()