![]() |
Google OR-Tools v9.14
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.
Public Member Functions | |
| CumulativeConstraint (CpModel model) | |
| CumulativeConstraint | addDemand (IntervalVar interval, LinearArgument demand) |
| Adds a pair (interval, demand) to the constraint. | |
| CumulativeConstraint | addDemand (IntervalVar interval, long demand) |
| Adds a pair (interval, demand) to the constraint. | |
| CumulativeConstraint | addDemands (IntervalVar[] intervals, LinearArgument[] demands) |
| CumulativeConstraint | addDemands (IntervalVar[] intervals, long[] demands) |
| CumulativeConstraint | addDemands (IntervalVar[] intervals, int[] demands) |
| CumulativeConstraint (CpModel model) | |
| CumulativeConstraint | addDemand (IntervalVar interval, LinearArgument demand) |
| Adds a pair (interval, demand) to the constraint. | |
| CumulativeConstraint | addDemand (IntervalVar interval, long demand) |
| Adds a pair (interval, demand) to the constraint. | |
| CumulativeConstraint | addDemands (IntervalVar[] intervals, LinearArgument[] demands) |
| CumulativeConstraint | addDemands (IntervalVar[] intervals, long[] demands) |
| CumulativeConstraint | addDemands (IntervalVar[] intervals, int[] demands) |
| Public Member Functions inherited from com.google.ortools.sat.Constraint | |
| Constraint (CpModelProto.Builder builder) | |
| void | onlyEnforceIf (Literal lit) |
| void | onlyEnforceIf (Literal[] lits) |
| int | getIndex () |
| ConstraintProto.Builder | getBuilder () |
| Constraint (CpModelProto.Builder builder) | |
| void | onlyEnforceIf (Literal lit) |
| void | onlyEnforceIf (Literal[] lits) |
| int | getIndex () |
| ConstraintProto.Builder | getBuilder () |
| 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.