def run_fba(self, reaction):
solver = self._get_solver()<EOL>p = fluxanalysis.FluxBalanceProblem(self._mm, solver)<EOL>start_time = time.time()<EOL>try:<EOL><INDENT>p.maximize(reaction)<EOL><DEDENT>except fluxanalysis.FluxBalanceError as e:<EOL><INDENT>self.report_flux_balance_error(e)<EOL><DEDENT>logger.info('<STR_LIT>'.format(<EOL>time.time() - start_time))<EOL>for reaction_id in self._mm.reactions:<EOL><INDENT>yield reaction_id, p.get_flux(reaction_id)<EOL><DEDENT>
Run standard FBA on model.