Skip to main content

Variable: IntVarMin

const IntVarMin: number = -IntVarMax

Remarks

Minimum value of a decision variable or a decision expression (such as x+1 where x is a variable). The opposite of IntVarMax.

Use IntVarMin when you need to allow the full range of negative values for an integer variable.

Example

import * as CP from "optalcp";

const model = new CP.Model();
// IntVarMin is the minimum allowed value for integer variables
const x = model.intVar({ min: CP.IntVarMin, max: 0, name: "x" });