gtopt::AmplCompoundLeg struct

One leg of a compound PAMPL attribute. The compound is the sum Σ coefficient * <source_attribute> where each source_attribute is itself a registered AmplVariable of the same element.

Example: line.flow = (+1, "flowp"), (-1, "flown").

Public variables

double coefficient
std::string_view source_attribute
must be a registered AMPL attribute