Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.TableConstraint Class Reference
Inheritance diagram for com.google.ortools.sat.TableConstraint:
com.google.ortools.sat.Constraint com.google.ortools.sat.Constraint

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 ()
 

Detailed Description

Specialized assignment constraint.

This constraint allows adding tuples to the allowed/forbidden assignment constraint incrementally.

Definition at line 25 of file TableConstraint.java.

Constructor & Destructor Documentation

◆ TableConstraint() [1/2]

com.google.ortools.sat.TableConstraint.TableConstraint ( CpModelProto.Builder builder)

Definition at line 26 of file TableConstraint.java.

◆ TableConstraint() [2/2]

com.google.ortools.sat.TableConstraint.TableConstraint ( CpModelProto.Builder builder)

Definition at line 26 of file TableConstraint.java.

Member Function Documentation

◆ addTuple() [1/4]

TableConstraint com.google.ortools.sat.TableConstraint.addTuple ( int[] tuple)

Adds a tuple of possible/forbidden values to the constraint.

Parameters
tuplethe tuple to add to the constraint.
Exceptions
CpModel.WrongLengthif the tuple does not have the same length as the array of variables of the constraint.

Definition at line 37 of file TableConstraint.java.

◆ addTuple() [2/4]

TableConstraint com.google.ortools.sat.TableConstraint.addTuple ( int[] tuple)

Adds a tuple of possible/forbidden values to the constraint.

Parameters
tuplethe tuple to add to the constraint.
Exceptions
CpModel.WrongLengthif the tuple does not have the same length as the array of variables of the constraint.

Definition at line 37 of file TableConstraint.java.

◆ addTuple() [3/4]

TableConstraint com.google.ortools.sat.TableConstraint.addTuple ( long[] tuple)

Adds a tuple of possible/forbidden values to the constraint.

Parameters
tuplethe tuple to add to the constraint.
Exceptions
CpModel.WrongLengthif the tuple does not have the same length as the array of variables of the constraint.

Definition at line 56 of file TableConstraint.java.

◆ addTuple() [4/4]

TableConstraint com.google.ortools.sat.TableConstraint.addTuple ( long[] tuple)

Adds a tuple of possible/forbidden values to the constraint.

Parameters
tuplethe tuple to add to the constraint.
Exceptions
CpModel.WrongLengthif the tuple does not have the same length as the array of variables of the constraint.

Definition at line 56 of file TableConstraint.java.

◆ addTuples() [1/4]

TableConstraint com.google.ortools.sat.TableConstraint.addTuples ( int tuples[][])

Adds a list of tuples of possible/forbidden values to the constraint.

Parameters
tuplesthe list of tuples to add to the constraint.
Exceptions
CpModel.WrongLengthif one tuple does not have the same length as the array of variables of the constraint.

Definition at line 75 of file TableConstraint.java.

◆ addTuples() [2/4]

TableConstraint com.google.ortools.sat.TableConstraint.addTuples ( int tuples[][])

Adds a list of tuples of possible/forbidden values to the constraint.

Parameters
tuplesthe list of tuples to add to the constraint.
Exceptions
CpModel.WrongLengthif one tuple does not have the same length as the array of variables of the constraint.

Definition at line 75 of file TableConstraint.java.

◆ addTuples() [3/4]

TableConstraint com.google.ortools.sat.TableConstraint.addTuples ( long tuples[][])

Adds a list of tuples of possible/forbidden values to the constraint.

Parameters
tuplesthe list of tuples to add to the constraint.
Exceptions
CpModel.WrongLengthif one tuple does not have the same length as the array of variables of the constraint.

Definition at line 96 of file TableConstraint.java.

◆ addTuples() [4/4]

TableConstraint com.google.ortools.sat.TableConstraint.addTuples ( long tuples[][])

Adds a list of tuples of possible/forbidden values to the constraint.

Parameters
tuplesthe list of tuples to add to the constraint.
Exceptions
CpModel.WrongLengthif one tuple does not have the same length as the array of variables of the constraint.

Definition at line 96 of file TableConstraint.java.


The documentation for this class was generated from the following files: