ElementRef struct
#include <gtopt/constraint_expr.hpp>
Reference to a gtopt element and one of its LP attributes.
Examples:
- generator("TORO").generation → {element_type="generator", element_id="TORO", attribute="generation"}
- demand("uid:5").load → {element_type="demand", element_id="uid:5", attribute="load"}
Public variables
- std::string attribute
- LP attribute: "generation", "load", etc.
- std::string element_id
- name or "uid:N" reference
- std::string element_type
- "generator", "demand", "line", etc.