Public Member Functions | Private Member Functions
Clasp::SelectFirst Class Reference

Selects the first free literal w.r.t to the initial variable order. More...

#include <solver.h>

Inheritance diagram for Clasp::SelectFirst:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void updateVar (const Solver &, Var, uint32)

Private Member Functions

Literal doSelect (Solver &s)
 Implements the actual selection process.

Detailed Description

Selects the first free literal w.r.t to the initial variable order.

Definition at line 1056 of file solver.h.


Member Function Documentation

Literal Clasp::SelectFirst::doSelect ( Solver ) [private, virtual]

Implements the actual selection process.

Precondition:
s.numFreeVars() > 0, i.e. there is at least one variable to branch on.
Returns:
  • a literal that is currently free or
  • a sentinel literal. In that case, the heuristic shall have asserted a literal!

Implements Clasp::DecisionHeuristic.

Definition at line 33 of file solver.cpp.

void Clasp::SelectFirst::updateVar ( const Solver ,
Var  ,
uint32   
) [inline, virtual]

Called if the state of one or more variables changed. A state change is one of:

  • A previously eliminated variable is resurrected.
  • A new aux variable was added.
  • An aux variable was removed.
Parameters:
sSolver in which the state change occurred.
vThe first variable affected by the change.
nThe range of variables affected, i.e. [v, v+n).
Note:
Use s.validVar(v) and s.auxVar(v) to determine the reason for the update.

Implements Clasp::DecisionHeuristic.

Definition at line 1058 of file solver.h.


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


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:41