DotNet Reference
.Net Reference
SearchHelpers.cs
Go to the documentation of this file.
113 throw new ArgumentException("Cannot evaluate '" + literal.ToString() + "' as a boolean literal");
145 value: $"Solution {_solutionCount}, time = {time.TotalSeconds} s, objective = [{objLb}, {objUb}]");
Parent class to create a callback called at each solution.
Definition: SearchHelpers.cs:26
long Value(LinearExpr e)
Returns the value of a linear expression in the current solution.
Definition: SearchHelpers.cs:32
Boolean BooleanValue(ILiteral literal)
Returns the Boolean value of a literal in the current solution.
Definition: SearchHelpers.cs:104
long Value(IntVar intVar)
Returns the value of an integer variable in the current solution.
Definition: SearchHelpers.cs:94
Holds a integer variable with a discrete domain.
Definition: IntegerExpressions.cs:706
int GetIndex()
Returns the index of the variable in the underlying CpModelProto.
Definition: IntegerExpressions.cs:734
A builder class for linear expressions.
Definition: IntegerExpressions.cs:443
Holds a linear expression: sum (ai * xi) + b.
Definition: IntegerExpressions.cs:108
A specialized solution printer.
Definition: SearchHelpers.cs:126
ObjectiveSolutionPrinter()
Definition: SearchHelpers.cs:130
int solutionCount()
override void OnSolutionCallback()
Definition: SearchHelpers.cs:135
Holds a Boolean variable or its negation.
Definition: IntegerExpressions.cs:26
Definition: Constraints.cs:15
Definition: IntegerExpressions.cs:91