Skip to main content

Variable: IntervalMax

const IntervalMax: 715827882 = 715827882

Remarks​

Maximum value of start or end of an interval variable. The opposite of IntervalMin.

Use IntervalMax when you want to leave the end time of an interval variable unconstrained.

Example​

import * as CP from "optalcp";

const model = new CP.Model();
// IntervalMax is the maximum allowed value for interval start/end
const task = model.intervalVar({ end: [0, CP.IntervalMax], length: 10, name: "task" });