DotNet Reference
.Net Reference
IntegerExpressions.cs
Go to the documentation of this file.
235 public static long GetVarValueMap(LinearExpr e, long initial_coeff, Dictionary<IntVar, long> dict)
331 throw new ArgumentException("Cannot interpret '" + expr.ToString() + "' in an integer expression");
416 throw new ArgumentException("in SumArray(vars, coeffs), the two lists do not have the same length");
static long GetVarValueMap(LinearExpr e, long initial_coeff, Dictionary< IntVar, long > dict)
Definition: IntegerExpressions.cs:235
IntVar(CpModelProto model, Domain domain, string name)
Definition: IntegerExpressions.cs:504
SumArray(IEnumerable< IntVar > vars, IEnumerable< long > coeffs)
Definition: IntegerExpressions.cs:402
override string ShortString()
Definition: IntegerExpressions.cs:549
Definition: Domain.cs:17
BoundedLinearExpression(LinearExpr left, LinearExpr right, bool equality)
Definition: IntegerExpressions.cs:639
SumArray(IEnumerable< LinearExpr > exprs)
Definition: IntegerExpressions.cs:381
override string ToString()
Definition: CpModel.pb.cs:352
static BoundedLinearExpression operator<(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:213
List< LinearExpr > Expressions
Definition: IntegerExpressions.cs:463
SumArray(IEnumerable< IntVar > vars)
Definition: IntegerExpressions.cs:387
static BoundedLinearExpression operator<(BoundedLinearExpression a, long v)
Definition: IntegerExpressions.cs:708
static LinearExpr ScalProd(IEnumerable< IntVar > vars, IEnumerable< long > coeffs)
Definition: IntegerExpressions.cs:66
static BoundedLinearExpression operator<(LinearExpr a, long v)
Definition: IntegerExpressions.cs:188
static LinearExpr Sum(IEnumerable< IntVar > vars)
Definition: IntegerExpressions.cs:51
Definition: SatHelper.cs:15
ProductCst(LinearExpr e, long v)
Definition: IntegerExpressions.cs:340
ILiteral Not()
static BoundedLinearExpression operator!=(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:143
static LinearExpr operator-(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:108
static LinearExpr ScalProd(IEnumerable< IntVar > vars, IEnumerable< int > coeffs)
Definition: IntegerExpressions.cs:61
static LinearExpr operator*(LinearExpr a, long v)
Definition: IntegerExpressions.cs:123
static BoundedLinearExpression operator>(BoundedLinearExpression a, long v)
Definition: IntegerExpressions.cs:726
static BoundedLinearExpression operator>=(BoundedLinearExpression a, long v)
Definition: IntegerExpressions.cs:717
override string ShortString()
Definition: IntegerExpressions.cs:476
Definition: IntArrayHelper.cs:15
override int GetIndex()
Definition: IntegerExpressions.cs:596
void AddExpr(LinearExpr expr)
Definition: IntegerExpressions.cs:454
override string ShortString()
Definition: IntegerExpressions.cs:611
static LinearExpr Sum(this IntVar[] vars)
Definition: IntegerExpressions.cs:26
pbc::RepeatedField< global::Google.OrTools.Sat.IntegerVariableProto > Variables
The associated Protos should be referred by their index in these fields.
Definition: CpModel.pb.cs:7107
static BoundedLinearExpression operator<(long v, LinearExpr a)
Definition: IntegerExpressions.cs:193
static LinearExpr Prod(LinearExpr e, long v)
Definition: IntegerExpressions.cs:218
static BoundedLinearExpression operator==(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:138
SumArray(IntVar[] vars, long[] coeffs)
Definition: IntegerExpressions.cs:393
static BoundedLinearExpression operator>=(LinearExpr a, long v)
Definition: IntegerExpressions.cs:158
static BoundedLinearExpression operator>(long v, LinearExpr a)
Definition: IntegerExpressions.cs:173
static BoundedLinearExpression operator>(LinearExpr a, long v)
Definition: IntegerExpressions.cs:168
static LinearExpr ScalProd(this IntVar[] vars, long[] coeffs)
Definition: IntegerExpressions.cs:36
BoundedLinearExpression(long lb, LinearExpr expr, long ub)
Definition: IntegerExpressions.cs:630
static LinearExpr ScalProd(this IntVar[] vars, int[] coeffs)
Definition: IntegerExpressions.cs:31
SumArray(IEnumerable< IntVar > vars, IEnumerable< int > coeffs)
Definition: IntegerExpressions.cs:428
override string ToString()
Definition: IntegerExpressions.cs:680
NotBooleanVariable(IntVar boolvar)
Definition: IntegerExpressions.cs:591
Definition: IntArrayHelper.cs:15
static LinearExpr Sum(IEnumerable< LinearExpr > exprs)
Definition: IntegerExpressions.cs:56
static BoundedLinearExpression operator<=(LinearExpr a, long v)
Definition: IntegerExpressions.cs:178
static BoundedLinearExpression operator<=(BoundedLinearExpression a, long v)
Definition: IntegerExpressions.cs:699
BoundedLinearExpression(LinearExpr left, long v, bool equality)
Definition: IntegerExpressions.cs:648
static Domain VariableDomain(Google.OrTools.Sat.IntegerVariableProto variable_proto)
Definition: SatHelper.cs:124
LinearExpr Right
Definition: IntegerExpressions.cs:743
Definition: Domain.cs:11
static LinearExpr operator+(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:93
virtual string ShortString()
Definition: IntegerExpressions.cs:88
int GetIndex()
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:318
SumArray(LinearExpr a, long b)
Definition: IntegerExpressions.cs:374
static BoundedLinearExpression operator>(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:203
static LinearExpr Term(IntVar var, long coeff)
Definition: IntegerExpressions.cs:71
SumArray(LinearExpr a, LinearExpr b)
Definition: IntegerExpressions.cs:366
Definition: CpModel.pb.cs:12