CarrierConverter struct
#include <gtopt/carrier_converter.hpp>
One-stage flow converter between two carrier-typed nodes.
The LP creates one input column per (scenario, stage, block) with operating cost ocost, upper bound capacity (per-block MW). The from-node balance row gets coefficient −1 × input (withdraws); the to-node balance row gets coefficient +efficiency × input (injects).
Public static variables
- static LPClassName class_name
- Canonical class-name used in LP row labels.
Public variables
- OptActive active
- Operational status (default: active).
- OptTRealFieldSched annual_capcost
- Annualised investment cost.
- OptTRealFieldSched annual_derating
- Annual derating factor.
- OptTRealFieldSched capacity
- OptTRealFieldSched capmax
- Absolute maximum capacity.
- OptTBRealFieldSched efficiency
- OptTRealFieldSched expcap
- Capacity per expansion module.
- OptTRealFieldSched expmod
- Maximum number of expansion modules.
- Carrier from_carrier
- OptSingleId from_node
- OptBool integer_expmod
- Integer-constrain the expmod variable.
- Name name
- Human-readable name.
- OptTBRealFieldSched ocost
- Carrier to_carrier
- Destination carrier. REQUIRED — same role as
from_carrier. - OptSingleId to_node
- Reference to the destination node. Same rules as
from_node. - OptName type
- Uid uid
- Unique identifier.
Annuity from overnight cost (per-candidate private rate)
Used only when annual_capcost is unset: the LP charges annual_capcost = overnight_capcost × CRF(wacc, economic_life). wacc unset → the social annual_discount_rate (a public project). All unset (default) → today's LP.
Variable documentation
OptTRealFieldSched gtopt:: CarrierConverter:: capacity
Installed input capacity (per-block, MW on whichever side from_carrier measures it).
OptTBRealFieldSched gtopt:: CarrierConverter:: efficiency
Conversion efficiency (output units per input unit). Default 1.0. Per-(stage, block) so part-load efficiency curves can be modelled by passing a TBRealFieldSched.
Carrier gtopt:: CarrierConverter:: from_carrier
Source carrier. REQUIRED — the validator uses this to resolve from_node against the matching Xxx array (Bus, ThermalNode, HydrogenNode, AmmoniaNode).
OptSingleId gtopt:: CarrierConverter:: from_node
Reference to the source node. Resolved against the carrier-matching node array at planning time.
OptTBRealFieldSched gtopt:: CarrierConverter:: ocost
Operating cost per unit of input flow. Default 0.0. Captures O&M, water cost (electrolyser), nitrogen cost (Haber-Bosch), catalyst replacement amortised per MWh, etc.
OptTRealFieldSched gtopt:: CarrierConverter:: overnight_capcost
Overnight investment cost per unit of capacity [$/MW]
OptTRealFieldSched gtopt:: CarrierConverter:: wacc
Private discount rate of the annuity [p.u./year]
OptTRealFieldSched gtopt:: CarrierConverter:: fixed_om_cost
Fixed O&M of the expansion capacity [$/unit-year], charged on the capacity built from this stage on, next to the annuity and with the same stage discounting. Unset → no fixed O&M.