gtopt::Planning struct

Represents a complete power planning model.

Public functions

auto merge(Planning&& plan) -> constexpr void
Merges another planning object into this one.

Public variables

PlanningOptions options
Simulation simulation
System system

Function documentation

constexpr void gtopt::Planning::merge(Planning&& plan)

Merges another planning object into this one.

Parameters
plan The planning object to merge from (will be moved from if it's an rvalue)
Returns Reference to this planning object

This is a unified template method that handles both lvalue and rvalue references. When merging from an rvalue reference, move semantics are used automatically.