DotNet Reference
.Net Reference
CpSolver.cs
Go to the documentation of this file.
69 [ObsoleteAttribute("This method is obsolete. Call Solve instead with the enumerate_all_solutions parameter.",
246 throw new ArgumentException("Cannot evaluate '" + literal.ToString() + "' as a boolean literal");
CpSolverStatus SolveWithSolutionCallback(CpModel model, SolutionCallback cb)
Deprecated, use Solve() instead.
Definition: CpSolver.cs:63
long Value(LinearExpr e)
Returns the value of a linear expression in the last solution found.
Definition: CpSolver.cs:168
void SetLogCallback(StringToVoidDelegate del)
Definition: CpSolver.cs:139
long NumConflicts()
Returns the number of conflicts created during search.
Definition: CpSolver.cs:257
IList< int > SufficientAssumptionsForInfeasibility()
Definition: CpSolver.cs:268
double BestObjectiveBound
The best lower bound found when minimizing, of the best upper bound found when maximizing
Definition: CpSolver.cs:122
CpSolverStatus SearchAllSolutions(CpModel model, SolutionCallback cb)
Deprecated, use Solve() instead.
Definition: CpSolver.cs:71
Boolean BooleanValue(ILiteral literal)
Returns the Boolean value of a literal in the last solution found.
Definition: CpSolver.cs:230
CpSolverStatus Solve(CpModel model, SolutionCallback cb=null)
Solves the given model, and returns the solve status.
Definition: CpSolver.cs:32
long Value(IntVar intVar)
Returns the value of an integer variable in the last solution found.
Definition: CpSolver.cs:156
String SolutionInfo()
Returns some information on how the solution was found, or the reason why the model or the parameters...
Definition: CpSolver.cs:279
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
override void NewMessage(string message)
Definition: CpSolver.cs:298
LogCallbackDelegate(StringToVoidDelegate del)
Definition: CpSolver.cs:293
Holds a Boolean variable or its negation.
Definition: IntegerExpressions.cs:26
Definition: Constraints.cs:15
Definition: IntegerExpressions.cs:91