coordinator_pool.hpp file
Tier-1 scene/pass orchestration pool for the SDDP method.
The coordinator tier runs one driver per scene per pass, each on its own thread. A driver executes that scene's forward (or backward) sweep and, in the two-tier design, spends ~all its time blocked on Tier-2 solve futures — so a blocked driver costs only a thread stack and no core.
Crucially the coordinator tier carries no resource management: no admission gate, no measured-memory model, no CPU/swap throttle, no elastic sizing. All of that lives in the solver tier, whose tasks are the ones that actually allocate LP/solver memory. This is why Tier 1 is a trivial std::async fan-out and not a BasicWorkPool: it has no work queue, no priority key and no gates.
One driver per scene per pass means ~num_scenes thread spawns per pass — negligible next to minutes of LP solves — so spawning per pass and joining via the returned futures is the minimal correct implementation.
Namespaces
- namespace gtopt
Classes
- class gtopt::CoordinatorPool
- Fixed-width scene/pass orchestration pool (Tier 1).