Uses of Class
com.google.ortools.sat.IntervalVar
Packages that use IntervalVar
-
Uses of IntervalVar in com.google.ortools.sat
Methods in com.google.ortools.sat that return IntervalVarModifier and TypeMethodDescriptionCpModel.newFixedInterval
(long start, long size, String name) Creates a fixed interval from its start and its size.CpModel.newFixedSizeIntervalVar
(LinearArgument start, long size, String name) Creates an interval variable from an 1-var affine expression start, and a fixed size.CpModel.newIntervalVar
(LinearArgument start, LinearArgument size, LinearArgument end, String name) Creates an interval variable from three 1-var affine expressions start, size, and end.CpModel.newOptionalFixedInterval
(long start, long size, Literal isPresent, String name) Creates an optional fixed interval from start and size, and an isPresent literal.CpModel.newOptionalFixedSizeIntervalVar
(LinearArgument start, long size, Literal isPresent, String name) Creates an optional interval variable from an 1-var affine expression start, and a fixed size.CpModel.newOptionalIntervalVar
(LinearArgument start, LinearArgument size, LinearArgument end, Literal isPresent, String name) Creates an optional interval variable from three 1-var affine expressions start, size, end, and isPresent.Methods in com.google.ortools.sat with parameters of type IntervalVarModifier and TypeMethodDescriptionCumulativeConstraint.addDemand
(IntervalVar interval, long demand) Adds a pair (interval, demand) to the constraint.CumulativeConstraint.addDemand
(IntervalVar interval, LinearArgument demand) Adds a pair (interval, demand) to the constraint.CumulativeConstraint.addDemands
(IntervalVar[] intervals, int[] demands) Adds all pairs (intervals[i], demands[i]) to the constraint.CumulativeConstraint.addDemands
(IntervalVar[] intervals, long[] demands) Adds all pairs (intervals[i], demands[i]) to the constraint.CumulativeConstraint.addDemands
(IntervalVar[] intervals, LinearArgument[] demands) Adds all pairs (intervals[i], demands[i]) to the constraint.CpModel.addNoOverlap
(IntervalVar[] intervalVars) AddsNoOverlap(intervalVars)
.NoOverlap2dConstraint.addRectangle
(IntervalVar xInterval, IntervalVar yInterval) Adds a rectangle (xInterval, yInterval) to the constraint.Method parameters in com.google.ortools.sat with type arguments of type IntervalVarModifier and TypeMethodDescriptionCpModel.addNoOverlap
(Iterable<IntervalVar> intervalVars) AddsNoOverlap(intervalVars)
.