Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
TableConstraint (CpModelProto.Builder builder) | |
TableConstraint | addTuple (int[] tuple) |
TableConstraint | addTuple (long[] tuple) |
TableConstraint | addTuples (int[][] tuples) |
TableConstraint | addTuples (long[][] tuples) |
TableConstraint (CpModelProto.Builder builder) | |
TableConstraint | addTuple (int[] tuple) |
TableConstraint | addTuple (long[] tuple) |
TableConstraint | addTuples (int[][] tuples) |
TableConstraint | addTuples (long[][] tuples) |
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 () |
Specialized assignment constraint.
This constraint allows adding tuples to the allowed/forbidden assignment constraint incrementally.
Definition at line 25 of file TableConstraint.java.
com.google.ortools.sat.TableConstraint.TableConstraint | ( | CpModelProto.Builder | builder | ) |
Definition at line 26 of file TableConstraint.java.
com.google.ortools.sat.TableConstraint.TableConstraint | ( | CpModelProto.Builder | builder | ) |
Definition at line 26 of file TableConstraint.java.
TableConstraint com.google.ortools.sat.TableConstraint.addTuple | ( | int[] | tuple | ) |
Adds a tuple of possible/forbidden values to the constraint.
tuple | the tuple to add to the constraint. |
CpModel.WrongLength | if the tuple does not have the same length as the array of variables of the constraint. |
Definition at line 37 of file TableConstraint.java.
TableConstraint com.google.ortools.sat.TableConstraint.addTuple | ( | int[] | tuple | ) |
Adds a tuple of possible/forbidden values to the constraint.
tuple | the tuple to add to the constraint. |
CpModel.WrongLength | if the tuple does not have the same length as the array of variables of the constraint. |
Definition at line 37 of file TableConstraint.java.
TableConstraint com.google.ortools.sat.TableConstraint.addTuple | ( | long[] | tuple | ) |
Adds a tuple of possible/forbidden values to the constraint.
tuple | the tuple to add to the constraint. |
CpModel.WrongLength | if the tuple does not have the same length as the array of variables of the constraint. |
Definition at line 56 of file TableConstraint.java.
TableConstraint com.google.ortools.sat.TableConstraint.addTuple | ( | long[] | tuple | ) |
Adds a tuple of possible/forbidden values to the constraint.
tuple | the tuple to add to the constraint. |
CpModel.WrongLength | if the tuple does not have the same length as the array of variables of the constraint. |
Definition at line 56 of file TableConstraint.java.
TableConstraint com.google.ortools.sat.TableConstraint.addTuples | ( | int | tuples[][] | ) |
Adds a list of tuples of possible/forbidden values to the constraint.
tuples | the list of tuples to add to the constraint. |
CpModel.WrongLength | if one tuple does not have the same length as the array of variables of the constraint. |
Definition at line 75 of file TableConstraint.java.
TableConstraint com.google.ortools.sat.TableConstraint.addTuples | ( | int | tuples[][] | ) |
Adds a list of tuples of possible/forbidden values to the constraint.
tuples | the list of tuples to add to the constraint. |
CpModel.WrongLength | if one tuple does not have the same length as the array of variables of the constraint. |
Definition at line 75 of file TableConstraint.java.
TableConstraint com.google.ortools.sat.TableConstraint.addTuples | ( | long | tuples[][] | ) |
Adds a list of tuples of possible/forbidden values to the constraint.
tuples | the list of tuples to add to the constraint. |
CpModel.WrongLength | if one tuple does not have the same length as the array of variables of the constraint. |
Definition at line 96 of file TableConstraint.java.
TableConstraint com.google.ortools.sat.TableConstraint.addTuples | ( | long | tuples[][] | ) |
Adds a list of tuples of possible/forbidden values to the constraint.
tuples | the list of tuples to add to the constraint. |
CpModel.WrongLength | if one tuple does not have the same length as the array of variables of the constraint. |
Definition at line 96 of file TableConstraint.java.