gtopt/carrier_storage_lp.hpp file

Shared LP wrapper for the carrier storages (TES / H₂ / NH₃).

ThermalStorageLP, HydrogenStorageLP and AmmoniaStorageLP are one element on three carriers. Same LP shape as BatteryLP: one finp (charge) and one fout (discharge) column per (scenario, stage, block), the StorageLP<> energy balance, and — when the storage references its carrier node — −finp / +fout stamped into the node balance row (mirrors a Demand / Generator on a Bus). Only the data struct, the node type, the node-reference field and the state defaults differ, and they are the template arguments.

The member functions are defined in carrier_storage_lp.cpp and explicitly instantiated for the three storages.

Namespaces

namespace gtopt

Classes

template<typename Storage, typename NodeLP, auto NodeRef, const StorageStateDefaults& Defaults>
class gtopt::CarrierStorageLP