2using System.Xml.Serialization;
17[XmlType(TypeName =
"mathematicalVariableValue")]
50 string variableName =
"",
51 string domainKey =
"")
61 variableName?.Trim() ??
75 [XmlAttribute(
"variableId")]
85 [XmlAttribute(
"variableName")]
96 [XmlElement(
"domainKey")]
106 [XmlAttribute(
"value")]
124 throw new InvalidOperationException(
125 "A mathematical-variable value must reference a " +
126 "strictly positive variable identifier.");
134 throw new InvalidOperationException(
135 "A mathematical-variable value must be finite.");
void EnsureValid()
Validates the mathematical-variable value.
int VariableId
Gets or sets the identifier of the mathematical variable.
string VariableName
Gets or sets the mathematical-variable name.
MathematicalVariableValue()
Initializes an empty mathematical-variable value.
MathematicalVariableValue(int variableId, double value, string variableName="", string domainKey="")
Initializes a mathematical-variable value.
double Value
Gets or sets the value returned by the solver.
string DomainKey
Gets or sets the business-domain key associated with the mathematical variable.