def _solve(self):
<EOL>while len(self._remove_constr) > <NUM_LIT:0>:<EOL><INDENT>self._remove_constr.pop().delete()<EOL><DEDENT>try:<EOL><INDENT>self._prob.solve(lp.ObjectiveSense.Maximize)<EOL><DEDENT>except lp.SolverError as e:<EOL><INDENT>raise_from(FluxBalanceError('<STR_LIT>'.format(<EOL>e), result=self._prob.result), e)<EOL><DEDENT>finally:<EOL><INDENT>self._remove_constr = self._temp_constr<EOL>self._temp_constr = []<EOL><DEDENT>
Solve the problem with the current objective.