def lpsolve(self, solver="scip", clean=True):
        self.print_instance()

        solver = SCIPSolver if solver == "scip" else GLPKSolver
        lp_data = self.handle.getvalue()
        self.handle.close()

        g = solver(lp_data, clean=clean)
        selected = set(g.results)
        try:
            obj_val = g.obj_val
        except __HOLE__:  # No solution!
            return None, None
        return selected, obj_val
dataset/ETHPy150Open tanghaibao/jcvi/algorithms/lpsolve.py/LPInstance.lpsolve