Skip to main content

Variable: LengthMax

const LengthMax: number

Remarks

Maximum length of an interval variable. The maximum length can be achieved by an interval that starts at IntervalMin and ends at IntervalMax.

Use LengthMax when you want to leave the length of an interval variable unconstrained.

Example

import * as CP from "optalcp";

const model = new CP.Model();
// LengthMax is the maximum allowed length for an interval variable
const task = model.intervalVar({ length: [0, CP.LengthMax], name: "task" });