def _run_solve(prob: problem.Problem, x, distro=None, max_cost=None): prob.clear() return runner.solve_randomly(prob, int(x), distro, max_cost)