C# Class Cream.LocalSearch

A super class of local search solvers, and also an implementation of a random walk solver. Local search is an iterative procedure. It first finds an initial soluttion, and iteratively make a small change
Inheritance: Solver
Afficher le fichier Open project: kikoanis/CSharpCream Class Usage Examples

Méthodes publiques

Свойство Type Description
iterTimeout long

Protected Properties

Свойство Type Description
iteration int
solver DefaultSolver

Méthodes publiques

Méthode Description
LocalSearch ( Cream.Network network ) : System

Constructs a random-walk solver for the given network. This constructor is equivalent to LocalSearch(network, Default, null).

LocalSearch ( Cream.Network network, String name ) : System

Constructs a random-walk solver for the given network and name. This constructor is equivalent to LocalSearch(network, Default, name).

LocalSearch ( Cream.Network network, int option ) : System

Constructs a random-walk solver for the given network and option. This constructor is equivalent to LocalSearch(network, option, null).

LocalSearch ( Cream.Network network, int option, String name ) : System

Constructs a random-walk solver for the given network, option, and name.

Run ( ) : void
Stop ( ) : void

Méthodes protégées

Méthode Description
EndSearch ( ) : void
GetCandidate ( ) : Solution
NextSearch ( ) : void
StartSearch ( ) : void

Method Details

EndSearch() protected méthode

protected EndSearch ( ) : void
Résultat void

GetCandidate() protected méthode

protected GetCandidate ( ) : Solution
Résultat Solution

LocalSearch() public méthode

Constructs a random-walk solver for the given network. This constructor is equivalent to LocalSearch(network, Default, null).
public LocalSearch ( Cream.Network network ) : System
network Cream.Network the constraint network ///
Résultat System

LocalSearch() public méthode

Constructs a random-walk solver for the given network and name. This constructor is equivalent to LocalSearch(network, Default, name).
public LocalSearch ( Cream.Network network, String name ) : System
network Cream.Network the constraint network ///
name String the name of the solver ///
Résultat System

LocalSearch() public méthode

Constructs a random-walk solver for the given network and option. This constructor is equivalent to LocalSearch(network, option, null).
public LocalSearch ( Cream.Network network, int option ) : System
network Cream.Network the constraint network ///
option int the option for search strategy ///
Résultat System

LocalSearch() public méthode

Constructs a random-walk solver for the given network, option, and name.
public LocalSearch ( Cream.Network network, int option, String name ) : System
network Cream.Network the constraint network ///
option int the option for search strategy, or Default for default search strategy ///
name String the name of the solver, or null for a default name ///
Résultat System

NextSearch() protected méthode

protected NextSearch ( ) : void
Résultat void

Run() public méthode

public Run ( ) : void
Résultat void

StartSearch() protected méthode

protected StartSearch ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

Property Details

iterTimeout public_oe property

public long iterTimeout
Résultat long

iteration protected_oe property

protected int iteration
Résultat int

solver protected_oe property

protected DefaultSolver,Cream solver
Résultat DefaultSolver