Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.ConstraintSolver.IntVarArrayHelper Class Reference

IntVar[] helper class. More...

Static Public Member Functions

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.
 

Detailed Description

IntVar[] helper class.

Definition at line 20 of file IntVarArrayHelper.cs.

Member Function Documentation

◆ AllDifferent()

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.AllDifferent ( this IntVar[] vars)
inlinestatic

All Different.

Definition at line 23 of file IntVarArrayHelper.cs.

◆ AllowedAssignments()

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.AllowedAssignments ( this IntVar[] vars,
IntTupleSet tuples )
inlinestatic

Allowed assignment.

Definition at line 29 of file IntVarArrayHelper.cs.

◆ Count() [1/2]

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Count ( this IntVar[] vars,
long value,
IntExpr count )
inlinestatic

count of all vars.

Definition at line 122 of file IntVarArrayHelper.cs.

◆ Count() [2/2]

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Count ( this IntVar[] vars,
long value,
long count )
inlinestatic

count of all vars.

Definition at line 116 of file IntVarArrayHelper.cs.

◆ Distribute() [1/4]

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Distribute ( this IntVar[] vars,
int[] values,
IntVar[] cards )
inlinestatic

Definition at line 132 of file IntVarArrayHelper.cs.

◆ Distribute() [2/4]

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Distribute ( this IntVar[] vars,
IntVar[] cards )
inlinestatic

Definition at line 137 of file IntVarArrayHelper.cs.

◆ Distribute() [3/4]

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Distribute ( this IntVar[] vars,
long card_min,
long card_max,
long card_size )
inlinestatic

Definition at line 142 of file IntVarArrayHelper.cs.

◆ Distribute() [4/4]

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Distribute ( this IntVar[] vars,
long[] values,
IntVar[] cards )
inlinestatic

Definition at line 127 of file IntVarArrayHelper.cs.

◆ Element()

static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Element ( this IntVar[] array,
IntExpr index )
inlinestatic

Definition at line 99 of file IntVarArrayHelper.cs.

◆ Flatten()

static IntVar[] Google.OrTools.ConstraintSolver.IntVarArrayHelper.Flatten ( this IntVar vars[,])
inlinestatic

Matrix API.

Definition at line 161 of file IntVarArrayHelper.cs.

◆ Max()

static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Max ( this IntVar[] vars)
inlinestatic

min of all vars.

Definition at line 110 of file IntVarArrayHelper.cs.

◆ Min()

static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Min ( this IntVar[] vars)
inlinestatic

min of all vars.

Definition at line 104 of file IntVarArrayHelper.cs.

◆ ScalProd() [1/2]

static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.ScalProd ( this IntVar[] vars,
int[] coefs )
inlinestatic

scalar product

Definition at line 70 of file IntVarArrayHelper.cs.

◆ ScalProd() [2/2]

static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.ScalProd ( this IntVar[] vars,
long[] coefs )
inlinestatic

scalar product

Definition at line 63 of file IntVarArrayHelper.cs.

◆ Sum() [1/3]

static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Sum ( this IConstraintWithStatus[] cts)
inlinestatic

sum of all constraints.

Definition at line 41 of file IntVarArrayHelper.cs.

◆ Sum() [2/3]

static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Sum ( this IntExpr[] exprs)
inlinestatic

Definition at line 51 of file IntVarArrayHelper.cs.

◆ Sum() [3/3]

static IntExpr Google.OrTools.ConstraintSolver.IntVarArrayHelper.Sum ( this IntVar[] vars)
inlinestatic

sum of all vars.

Definition at line 35 of file IntVarArrayHelper.cs.

◆ Transition() [1/2]

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Transition ( this IntVar[] vars,
IntTupleSet transitions,
long initial_state,
int[] final_states )
inlinestatic

Definition at line 153 of file IntVarArrayHelper.cs.

◆ Transition() [2/2]

static Constraint Google.OrTools.ConstraintSolver.IntVarArrayHelper.Transition ( this IntVar[] vars,
IntTupleSet transitions,
long initial_state,
long[] final_states )
inlinestatic

Definition at line 147 of file IntVarArrayHelper.cs.


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