Java Reference

Java Reference

CpSolverSolutionCallback

Detailed Description

Parent class to create a callback called at each solution.

From the parent class, it inherits the methods:

long numBooleans() to query the number of boolean variables created.

long numBranches() to query the number of branches explored so far.

long numConflicts() to query the number of conflicts created so far.

long numBinaryPropagations() to query the number of boolean propagations in the SAT solver so far.

long numIntegerPropagations() to query the number of integer propagations in the SAT solver so far.

double wallTime() to query wall time passed in the search so far.

double userTime() to query the user time passed in the search so far.

long objectiveValue() to get the best objective value found so far.

Definition at line 39 of file CpSolverSolutionCallback.java.

Public Member Functions

long value (LinearArgument expr)
 Returns the value of the linear expression in the current solution. More...
 
Boolean booleanValue (Literal literal)
 Returns the Boolean value of the literal in the current solution. More...
 
void onSolutionCallback ()
 Callback method to override. More...
 

Member Function Documentation

◆ booleanValue()

Boolean booleanValue ( Literal  literal)

Returns the Boolean value of the literal in the current solution.

Definition at line 51 of file CpSolverSolutionCallback.java.

◆ onSolutionCallback()

void onSolutionCallback ( )

Callback method to override.

It will be called at each new solution.

Definition at line 57 of file CpSolverSolutionCallback.java.

◆ value()

long value ( LinearArgument  expr)

Returns the value of the linear expression in the current solution.

Definition at line 41 of file CpSolverSolutionCallback.java.


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