gtopt::SDDPPlanningMethod class final

Adapter that wraps SDDPMethod behind the PlanningMethod interface.

Base classes

class PlanningMethod
Abstract interface for planning problem solvers.

Constructors, destructors, conversion operators

SDDPPlanningMethod(SDDPOptions opts = {}) explicit noexcept

Public functions

auto last_results() const -> const auto& noexcept
Access the last iteration results (valid after solve()).
auto solve(PlanningLP& planning_lp, const SolverOptions& opts) -> std::expected<int, Error> override
Solve the planning problem.

Function documentation

std::expected<int, Error> gtopt::SDDPPlanningMethod::solve(PlanningLP& planning_lp, const SolverOptions& opts) override

Solve the planning problem.

Parameters
planning_lp The LP model to solve (modified in place)
opts Solver options for individual LP subproblems
Returns Number of scenes processed, or an error