def solve_unchecked(self, sense=None):
if sense is not None:<EOL><INDENT>self.set_objective_sense(sense)<EOL><DEDENT>parm = swiglpk.glp_smcp()<EOL>swiglpk.glp_init_smcp(parm)<EOL>if self._do_presolve:<EOL><INDENT>parm.presolve = swiglpk.GLP_ON<EOL>self._do_presolve = False<EOL><DEDENT>else:<EOL><INDENT>parm.presolve = swiglpk.GLP_OFF<EOL><DEDENT>parm.tol_bnd = self._feasibility_tolerance<EOL>parm.tol_dj = self._optimality_tolerance<EOL>logger.debug('<STR_LIT>')<EOL>r = swiglpk.glp_simplex(self._p, parm)<EOL>if r in (swiglpk.GLP_ENOPFS, swiglpk.GLP_ENODFS):<EOL><INDENT>self._result = Result(self, r)<EOL>return self._result<EOL><DEDENT>elif r != <NUM_LIT:0>:<EOL><INDENT>raise GLPKError('<STR_LIT>'.format(r))<EOL><DEDENT>if swiglpk.glp_get_num_int(self._p) == <NUM_LIT:0>:<EOL><INDENT>self._result = Result(self)<EOL><DEDENT>else:<EOL><INDENT>logger.debug('<STR_LIT>')<EOL>parm = swiglpk.glp_iocp()<EOL>swiglpk.glp_init_iocp(parm)<EOL>parm.tol_int = self._integrality_tolerance<EOL>r = swiglpk.glp_intopt(self._p, parm)<EOL>if r != <NUM_LIT:0>:<EOL><INDENT>raise GLPKError('<STR_LIT>'.format(r))<EOL><DEDENT>self._result = MIPResult(self)<EOL><DEDENT>return self._result<EOL>
Solve problem and return result.

        The user must manually check the status of the result to determine
        whether an optimal solution was found. A :class:`SolverError` may still
        be raised if the underlying solver raises an exception.