IntVar[] helper class.
More...
|
static Constraint | AllDifferent (this IntVar[] vars) |
| All Different.
|
|
static Constraint | AllowedAssignments (this IntVar[] vars, IntTupleSet tuples) |
| Allowed assignment.
|
|
static IntExpr | Sum (this IntVar[] vars) |
| sum of all vars.
|
|
static IntExpr | Sum (this IConstraintWithStatus[] cts) |
| sum of all constraints.
|
|
static IntExpr | Sum (this IntExpr[] exprs) |
|
static IntExpr | ScalProd (this IntVar[] vars, long[] coefs) |
| scalar product
|
|
static IntExpr | ScalProd (this IntVar[] vars, int[] coefs) |
| scalar product
|
|
static IntExpr | Element (this IntVar[] array, IntExpr index) |
|
static IntExpr | Min (this IntVar[] vars) |
| min of all vars.
|
|
static IntExpr | Max (this IntVar[] vars) |
| min of all vars.
|
|
static Constraint | Count (this IntVar[] vars, long value, long count) |
| count of all vars.
|
|
static Constraint | Count (this IntVar[] vars, long value, IntExpr count) |
| count of all vars.
|
|
static Constraint | Distribute (this IntVar[] vars, long[] values, IntVar[] cards) |
|
static Constraint | Distribute (this IntVar[] vars, int[] values, IntVar[] cards) |
|
static Constraint | Distribute (this IntVar[] vars, IntVar[] cards) |
|
static Constraint | Distribute (this IntVar[] vars, long card_min, long card_max, long card_size) |
|
static Constraint | Transition (this IntVar[] vars, IntTupleSet transitions, long initial_state, long[] final_states) |
|
static Constraint | Transition (this IntVar[] vars, IntTupleSet transitions, long initial_state, int[] final_states) |
|
static IntVar[] | Flatten (this IntVar[,] vars) |
| Matrix API.
|
|
IntVar[] helper class.
Definition at line 20 of file IntVarArrayHelper.cs.
◆ AllDifferent()
static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.AllDifferent |
( |
this IntVar[] | vars | ) |
|
|
inlinestatic |
◆ AllowedAssignments()
◆ Count() [1/2]
static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Count |
( |
this IntVar[] | vars, |
|
|
long | value, |
|
|
IntExpr | count ) |
|
inlinestatic |
◆ Count() [2/2]
static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Count |
( |
this IntVar[] | vars, |
|
|
long | value, |
|
|
long | count ) |
|
inlinestatic |
◆ Distribute() [1/4]
static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Distribute |
( |
this IntVar[] | vars, |
|
|
int[] | values, |
|
|
IntVar[] | cards ) |
|
inlinestatic |
◆ Distribute() [2/4]
static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Distribute |
( |
this IntVar[] | vars, |
|
|
IntVar[] | cards ) |
|
inlinestatic |
◆ Distribute() [3/4]
static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Distribute |
( |
this IntVar[] | vars, |
|
|
long | card_min, |
|
|
long | card_max, |
|
|
long | card_size ) |
|
inlinestatic |
◆ Distribute() [4/4]
static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Distribute |
( |
this IntVar[] | vars, |
|
|
long[] | values, |
|
|
IntVar[] | cards ) |
|
inlinestatic |
◆ Element()
static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Element |
( |
this IntVar[] | array, |
|
|
IntExpr | index ) |
|
inlinestatic |
◆ Flatten()
static IntVar[] Google.OrTools.ConstraintSolver.IntVarArrayHelper.Flatten |
( |
this IntVar | vars[,] | ) |
|
|
inlinestatic |
◆ Max()
static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Max |
( |
this IntVar[] | vars | ) |
|
|
inlinestatic |
◆ Min()
static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Min |
( |
this IntVar[] | vars | ) |
|
|
inlinestatic |
◆ ScalProd() [1/2]
static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.ScalProd |
( |
this IntVar[] | vars, |
|
|
int[] | coefs ) |
|
inlinestatic |
◆ ScalProd() [2/2]
static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.ScalProd |
( |
this IntVar[] | vars, |
|
|
long[] | coefs ) |
|
inlinestatic |
◆ Sum() [1/3]
◆ Sum() [2/3]
static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Sum |
( |
this IntExpr[] | exprs | ) |
|
|
inlinestatic |
◆ Sum() [3/3]
static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Sum |
( |
this IntVar[] | vars | ) |
|
|
inlinestatic |
◆ Transition() [1/2]
static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Transition |
( |
this IntVar[] | vars, |
|
|
IntTupleSet | transitions, |
|
|
long | initial_state, |
|
|
int[] | final_states ) |
|
inlinestatic |
◆ Transition() [2/2]
static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Transition |
( |
this IntVar[] | vars, |
|
|
IntTupleSet | transitions, |
|
|
long | initial_state, |
|
|
long[] | final_states ) |
|
inlinestatic |
The documentation for this class was generated from the following file: