Cream version 1.2 Core API Specification

jp.ac.kobe_u.cs.cream
Class DefaultSolver

java.lang.Object
  extended byjp.ac.kobe_u.cs.cream.Solver
      extended byjp.ac.kobe_u.cs.cream.DefaultSolver
All Implemented Interfaces:
java.lang.Runnable

public class DefaultSolver
extends Solver

A branch-and-bound solver.

Since:
1.0
See Also:
Solver

Field Summary
 
Fields inherited from class jp.ac.kobe_u.cs.cream.Solver
BETTER, DEFAULT, MAXIMIZE, MINIMIZE, NONE
 
Constructor Summary
DefaultSolver(Network network)
          Constructs a branch-and-bound solver for the given network.
DefaultSolver(Network network, int options)
          Constructs a branch-and-bound solver for the given network and options.
DefaultSolver(Network network, int options, java.lang.String name)
          Constructs a branch-and-bound solver for the given network, options, and name.
DefaultSolver(Network network, java.lang.String name)
          Constructs a branch-and-bound solver for the given network and name.
 
Method Summary
 void run()
          The body of the solver.
 
Methods inherited from class jp.ac.kobe_u.cs.cream.Solver
clearBest, findAll, findAll, findBest, findBest, findFirst, findFirst, getBestSolution, getBestValue, getID, getOption, getSolution, join, resetIDCounter, resume, setMonitor, start, start, start, start, stop, toString, waitNext, waitNext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultSolver

public DefaultSolver(Network network)
Constructs a branch-and-bound solver for the given network. This constructor is equivalent to DefaultSolver(network, DEFAULT, null).

Parameters:
network - the constraint network

DefaultSolver

public DefaultSolver(Network network,
                     int options)
Constructs a branch-and-bound solver for the given network and options. This constructor is equivalent to DefaultSolver(network, options, null).

Parameters:
network - the constraint network
options - the options for search strategy

DefaultSolver

public DefaultSolver(Network network,
                     java.lang.String name)
Constructs a branch-and-bound solver for the given network and name. This constructor is equivalent to DefaultSolver(network, DEFAULT, name).

Parameters:
network - the constraint network
name - the name of the solver

DefaultSolver

public DefaultSolver(Network network,
                     int options,
                     java.lang.String name)
Constructs a branch-and-bound solver for the given network, options, and name.

Parameters:
network - the constraint network
options - the options for search strategy, or DEFAULT for default search strategy
name - the name of the solver, or null for a default name
Method Detail

run

public void run()
Description copied from class: Solver
The body of the solver. This method is called from Solver.start() methods.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class Solver

Cream version 1.2 Core API Specification

Cream: Constraint Programming Class Library for Java