the wasm constraint
the number of variables of the model the constraint belongs to
Get the coefficient of every variable of the model, zeros included, in the order of the model's variables
Get the indexes of the variables with a nonzero coefficient, in increasing order. An index is the position of the variable in the model's getVariables()
Get the nonzero coefficients, getValues()[k] is the coefficient of the variable at getIndices()[k]
Get the right hand side of the constraint, this is the constant term of the constraint
Get the type of the constraint
A constraint of a linear model, which stores only its nonzero coefficients: getValues()[k] is the coefficient of the variable at position getIndices()[k] of the model's getVariables().
Example