Skip to content

Commit

Permalink
remove memout
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisaTosello committed Apr 24, 2024
1 parent 7c2f46c commit 408266f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions unified_planning/engines/mixins/oneshot_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def solve(
problem: "up.model.AbstractProblem",
heuristic: Optional[Callable[["up.model.state.State"], Optional[float]]] = None,
timeout: Optional[float] = None,
memout: Optional[float] = None,
output_stream: Optional[IO[str]] = None,
) -> "up.engines.results.PlanGenerationResult":
"""
Expand Down Expand Up @@ -78,15 +77,14 @@ def solve(
if not problem_kind.has_quality_metrics() and self.optimality_metric_required:
msg = f"The problem has no quality metrics but the engine is required to be optimal!"
raise up.exceptions.UPUsageError(msg)
return self._solve(problem, heuristic, timeout, memout, output_stream)
return self._solve(problem, heuristic, timeout, output_stream)

@abstractmethod
def _solve(
self,
problem: "up.model.AbstractProblem",
heuristic: Optional[Callable[["up.model.state.State"], Optional[float]]] = None,
timeout: Optional[float] = None,
memout: Optional[float] = None,
output_stream: Optional[IO[str]] = None,
) -> "up.engines.results.PlanGenerationResult":
"""Method called by the OneshotPlannerMixin.solve method."""
Expand Down

0 comments on commit 408266f

Please sign in to comment.