DotNet Reference
.Net Reference
IntegerExpressions.cs
Go to the documentation of this file.
252 public static long GetVarValueMap(LinearExpr e, long initial_coeff, Dictionary<IntVar, long> dict)
353 throw new ArgumentException("Cannot interpret '" + expr.ToString() + "' in an integer expression");
438 throw new ArgumentException("in SumArray(vars, coeffs), the two lists do not have the same length");
464 throw new ArgumentException("in SumArray(vars, coeffs), the two lists do not have the same length");
static BoundedLinearExpression operator<=(BoundedLinearExpression a, long v)
Definition: IntegerExpressions.cs:730
LinearExpr Right
Definition: IntegerExpressions.cs:774
BoundedLinearExpression(long lb, LinearExpr expr, long ub)
Definition: IntegerExpressions.cs:661
BoundedLinearExpression(LinearExpr left, LinearExpr right, bool equality)
Definition: IntegerExpressions.cs:670
BoundedLinearExpression(LinearExpr left, long v, bool equality)
Definition: IntegerExpressions.cs:679
static BoundedLinearExpression operator<(BoundedLinearExpression a, long v)
Definition: IntegerExpressions.cs:739
static BoundedLinearExpression operator>(BoundedLinearExpression a, long v)
Definition: IntegerExpressions.cs:757
override string ToString()
Definition: IntegerExpressions.cs:711
static BoundedLinearExpression operator>=(BoundedLinearExpression a, long v)
Definition: IntegerExpressions.cs:748
ConstantExpr(long value)
Definition: IntegerExpressions.cs:526
pbc::RepeatedField< global::Google.OrTools.Sat.IntegerVariableProto > Variables
The associated Protos should be referred by their index in these fields.
Definition: CpModel.pb.cs:8842
Definition: CpSatHelper.cs:15
static Domain VariableDomain(Google.OrTools.Sat.IntegerVariableProto variable_proto)
Definition: CpSatHelper.cs:64
static LinearExpr ScalProd(this IntVar[] vars, long[] coeffs)
Definition: IntegerExpressions.cs:36
static LinearExpr Sum(this IntVar[] vars)
Definition: IntegerExpressions.cs:26
static LinearExpr ScalProd(this IntVar[] vars, int[] coeffs)
Definition: IntegerExpressions.cs:31
IntVar(CpModelProto model, Domain domain, string name)
Definition: IntegerExpressions.cs:543
override string ShortString()
Definition: IntegerExpressions.cs:581
pbc::RepeatedField< long > Domain
The variable domain given as a sorted list of n disjoint intervals [min, max] and encoded as [min_0,...
Definition: CpModel.pb.cs:348
override string ToString()
Definition: CpModel.pb.cs:386
virtual string ShortString()
Definition: IntegerExpressions.cs:105
static LinearExpr operator*(LinearExpr a, long v)
Definition: IntegerExpressions.cs:140
static LinearExpr Constant(long value)
Definition: IntegerExpressions.cs:88
static LinearExpr Term(IntVar var, long coeff)
Definition: IntegerExpressions.cs:71
static LinearExpr Sum(IEnumerable< LinearExpr > exprs)
Definition: IntegerExpressions.cs:56
static BoundedLinearExpression operator<(LinearExpr a, long v)
Definition: IntegerExpressions.cs:205
static BoundedLinearExpression operator==(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:155
static BoundedLinearExpression operator>(LinearExpr a, long v)
Definition: IntegerExpressions.cs:185
static LinearExpr Affine(IntVar var, long coeff, long offset)
Definition: IntegerExpressions.cs:76
static BoundedLinearExpression operator>=(LinearExpr a, long v)
Definition: IntegerExpressions.cs:175
static BoundedLinearExpression operator<=(LinearExpr a, long v)
Definition: IntegerExpressions.cs:195
static LinearExpr Prod(LinearExpr e, long v)
Definition: IntegerExpressions.cs:235
static LinearExpr ScalProd(IEnumerable< IntVar > vars, IEnumerable< long > coeffs)
Definition: IntegerExpressions.cs:66
static LinearExpr ScalProd(IEnumerable< IntVar > vars, IEnumerable< int > coeffs)
Definition: IntegerExpressions.cs:61
static LinearExpr operator+(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:110
static BoundedLinearExpression operator<(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:230
static BoundedLinearExpression operator>(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:220
static BoundedLinearExpression operator<(long v, LinearExpr a)
Definition: IntegerExpressions.cs:210
static long GetVarValueMap(LinearExpr e, long initial_coeff, Dictionary< IntVar, long > dict)
Definition: IntegerExpressions.cs:252
static BoundedLinearExpression operator>(long v, LinearExpr a)
Definition: IntegerExpressions.cs:190
static LinearExpr Sum(IEnumerable< IntVar > vars)
Definition: IntegerExpressions.cs:51
static BoundedLinearExpression operator!=(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:160
static LinearExpr operator-(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:125
NotBooleanVariable(IntVar boolvar)
Definition: IntegerExpressions.cs:622
override int GetIndex()
Definition: IntegerExpressions.cs:627
override string ShortString()
Definition: IntegerExpressions.cs:642
ProductCst(LinearExpr e, long v)
Definition: IntegerExpressions.cs:362
SumArray(LinearExpr a, long b)
Definition: IntegerExpressions.cs:396
SumArray(IEnumerable< IntVar > vars, IEnumerable< long > coeffs)
Definition: IntegerExpressions.cs:424
void AddExpr(LinearExpr expr)
Definition: IntegerExpressions.cs:476
SumArray(IEnumerable< IntVar > vars)
Definition: IntegerExpressions.cs:409
List< LinearExpr > Expressions
Definition: IntegerExpressions.cs:485
SumArray(IEnumerable< IntVar > vars, IEnumerable< int > coeffs)
Definition: IntegerExpressions.cs:450
SumArray(IntVar[] vars, long[] coeffs)
Definition: IntegerExpressions.cs:415
override string ShortString()
Definition: IntegerExpressions.cs:498
SumArray(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:388
SumArray(IEnumerable< LinearExpr > exprs)
Definition: IntegerExpressions.cs:403
Definition: Domain.cs:17
int GetIndex()
ILiteral Not()
Definition: CpModel.pb.cs:12
Definition: Domain.cs:11
Definition: IntArrayHelper.cs:15
Definition: IntArrayHelper.cs:15