RainbowStats™ · Optimization commands
ADD_LP_EQUATION
Add a linear constraint to an LP or LP regression.
Syntax
ADD_LP_EQUATION(model,"equation")Example
ADD_LP_EQUATION(P,"X+Y<=4")Details
The first argument names an existing equation-map LP or LPRegression object. The second argument is raw equation text with outer quotes removed. It is not evaluated as a RainbowStats expression. Returns the underlying addEquation result. For an ordinary LP, <= and >= are accepted and converted to the installed parser’s single-character forms, which mean LEQ and GEQ.
Aliases: LP_ADD_EQUATION
The extract inventory applies when the returned object is an LPRegressionOperator; ordinary LP extract keys were not verified.
Available extracts
Save the command result in a variable, then use EXTRACT(result, "key"). Availability can depend on the input form and fitted model.
modelactualvsfittedcoefficientsfitshadowtableaudualequations
In indexed patterns such as beta:n, replace n with the required index.