![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Specialized cumulative constraint.
This constraint allows adding (interval, demand) pairs to the cumulative constraint incrementally.
Definition at line 24 of file CumulativeConstraint.java.
| com.google.ortools.sat.CumulativeConstraint.CumulativeConstraint | ( | CpModel | model | ) |
Definition at line 25 of file CumulativeConstraint.java.
| com.google.ortools.sat.CumulativeConstraint.CumulativeConstraint | ( | CpModel | model | ) |
Definition at line 25 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemand | ( | IntervalVar | interval, |
| LinearArgument | demand ) |
Adds a pair (interval, demand) to the constraint.
Definition at line 31 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemand | ( | IntervalVar | interval, |
| LinearArgument | demand ) |
Adds a pair (interval, demand) to the constraint.
Definition at line 31 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemand | ( | IntervalVar | interval, |
| long | demand ) |
Adds a pair (interval, demand) to the constraint.
Definition at line 39 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemand | ( | IntervalVar | interval, |
| long | demand ) |
Adds a pair (interval, demand) to the constraint.
Definition at line 39 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemands | ( | IntervalVar[] | intervals, |
| int[] | demands ) |
Adds all pairs (intervals[i], demands[i]) to the constraint.
| intervals | an array of interval variables |
| demands | an array of integer values |
| CpModel.MismatchedArrayLengths | if intervals and demands have different length |
Definition at line 92 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemands | ( | IntervalVar[] | intervals, |
| int[] | demands ) |
Adds all pairs (intervals[i], demands[i]) to the constraint.
| intervals | an array of interval variables |
| demands | an array of integer values |
| CpModel.MismatchedArrayLengths | if intervals and demands have different length |
Definition at line 92 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemands | ( | IntervalVar[] | intervals, |
| LinearArgument[] | demands ) |
Adds all pairs (intervals[i], demands[i]) to the constraint.
| intervals | an array of interval variables |
| demands | an array of linear expression |
| CpModel.MismatchedArrayLengths | if intervals and demands have different length |
Definition at line 54 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemands | ( | IntervalVar[] | intervals, |
| LinearArgument[] | demands ) |
Adds all pairs (intervals[i], demands[i]) to the constraint.
| intervals | an array of interval variables |
| demands | an array of linear expression |
| CpModel.MismatchedArrayLengths | if intervals and demands have different length |
Definition at line 54 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemands | ( | IntervalVar[] | intervals, |
| long[] | demands ) |
Adds all pairs (intervals[i], demands[i]) to the constraint.
| intervals | an array of interval variables |
| demands | an array of long values |
| CpModel.MismatchedArrayLengths | if intervals and demands have different length |
Definition at line 73 of file CumulativeConstraint.java.
| CumulativeConstraint com.google.ortools.sat.CumulativeConstraint.addDemands | ( | IntervalVar[] | intervals, |
| long[] | demands ) |
Adds all pairs (intervals[i], demands[i]) to the constraint.
| intervals | an array of interval variables |
| demands | an array of long values |
| CpModel.MismatchedArrayLengths | if intervals and demands have different length |
Definition at line 73 of file CumulativeConstraint.java.