C# Класс 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
Наследование: Solver
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
iterTimeout long

Защищенные свойства (Protected)

Свойство Тип Описание
iteration int
solver DefaultSolver

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
EndSearch ( ) : void
GetCandidate ( ) : Solution
NextSearch ( ) : void
StartSearch ( ) : void

Описание методов

EndSearch() защищенный Метод

protected EndSearch ( ) : void
Результат void

GetCandidate() защищенный Метод

protected GetCandidate ( ) : Solution
Результат Solution

LocalSearch() публичный Метод

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 ///
Результат System

LocalSearch() публичный Метод

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 ///
Результат System

LocalSearch() публичный Метод

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 ///
Результат System

LocalSearch() публичный Метод

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 ///
Результат System

NextSearch() защищенный Метод

protected NextSearch ( ) : void
Результат void

Run() публичный Метод

public Run ( ) : void
Результат void

StartSearch() защищенный Метод

protected StartSearch ( ) : void
Результат void

Stop() публичный Метод

public Stop ( ) : void
Результат void

Описание свойств

iterTimeout публичное свойство

public long iterTimeout
Результат long

iteration защищенное свойство

protected int iteration
Результат int

solver защищенное свойство

protected DefaultSolver,Cream solver
Результат DefaultSolver