C# 클래스 Cream.DefaultSolver

A branch-and-bound solver.
상속: Solver
파일 보기 프로젝트 열기: kikoanis/CSharpCream 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
trail Trail

공개 메소드들

메소드 설명
DefaultSolver ( Cream.Network network ) : System

Initializes a new instance of the DefaultSolver class. Constructs a branch-and-bound solver for the given network. This constructor is equivalent to DefaultSolver(network, Default, null).

DefaultSolver ( Cream.Network network, int options ) : System

Initializes a new instance of the DefaultSolver class. Constructs a branch-and-bound solver for the given network and options. This constructor is equivalent to DefaultSolver(network, options, null).

DefaultSolver ( Cream.Network network, int options, string name ) : System

Initializes a new instance of the DefaultSolver class. Constructs a branch-and-bound solver for the given network, options, and name.

DefaultSolver ( Cream.Network network, string name ) : System

Initializes a new instance of the DefaultSolver class. Constructs a branch-and-bound solver for the given network and name. This constructor is equivalent to DefaultSolver(network, Default, name).

GetValueWithSoftConstraint ( Variable v0 ) : int

gets value from soft constraints

Run ( ) : void

Run method

SelectVariable ( ) : Variable

Selects a varaible for the current stage

Start ( long timeout ) : void

Start method

보호된 메소드들

메소드 설명
InfVariable ( ) : Variable

InfVariable Method

MinimumSizeVariable ( ) : Variable

MinimumSizeVariable method

ModifiedConstraints ( ) : IList

Modified constraints

Satisfy ( ) : bool

The Satisfy process will get rid of the domains items that are satisfied with the constraints

Solve ( int level ) : void

Solves the specified level.

비공개 메소드들

메소드 설명
DeleteDomainFromBestValueToMaxValue ( Variable objective ) : Cream.IntDomain
DeleteDomainFromMinValueToBestValue ( Variable objective ) : Cream.IntDomain
GetGeneratedSolution ( ) : void
GetSolutionWeight ( ) : int

gets solution weight

IsBetterSolution ( int totalWeight ) : bool

a method to check if it's a better solution

IsSoftConstraintsUsed ( ) : bool

메소드 상세

DefaultSolver() 공개 메소드

Initializes a new instance of the DefaultSolver class. Constructs a branch-and-bound solver for the given network. This constructor is equivalent to DefaultSolver(network, Default, null).
public DefaultSolver ( Cream.Network network ) : System
network Cream.Network /// the constraint network ///
리턴 System

DefaultSolver() 공개 메소드

Initializes a new instance of the DefaultSolver class. Constructs a branch-and-bound solver for the given network and options. This constructor is equivalent to DefaultSolver(network, options, null).
public DefaultSolver ( Cream.Network network, int options ) : System
network Cream.Network /// the constraint network ///
options int /// the options for search strategy ///
리턴 System

DefaultSolver() 공개 메소드

Initializes a new instance of the DefaultSolver class. Constructs a branch-and-bound solver for the given network, options, and name.
public DefaultSolver ( Cream.Network network, int options, string name ) : System
network Cream.Network /// the constraint network ///
options int /// the options for search strategy, or Default for default search strategy ///
name string /// the name of the solver, or null for a default name ///
리턴 System

DefaultSolver() 공개 메소드

Initializes a new instance of the DefaultSolver class. Constructs a branch-and-bound solver for the given network and name. This constructor is equivalent to DefaultSolver(network, Default, name).
public DefaultSolver ( Cream.Network network, string name ) : System
network Cream.Network /// the constraint network ///
name string /// the name of the solver ///
리턴 System

GetValueWithSoftConstraint() 공개 메소드

gets value from soft constraints
public GetValueWithSoftConstraint ( Variable v0 ) : int
v0 Variable /// The v0 (which is a of type variable). ///
리턴 int

InfVariable() 보호된 메소드

InfVariable Method
protected InfVariable ( ) : Variable
리턴 Variable

MinimumSizeVariable() 보호된 메소드

MinimumSizeVariable method
protected MinimumSizeVariable ( ) : Variable
리턴 Variable

ModifiedConstraints() 보호된 메소드

Modified constraints
protected ModifiedConstraints ( ) : IList
리턴 IList

Run() 공개 메소드

Run method
public Run ( ) : void
리턴 void

Satisfy() 보호된 메소드

The Satisfy process will get rid of the domains items that are satisfied with the constraints
protected Satisfy ( ) : bool
리턴 bool

SelectVariable() 공개 메소드

Selects a varaible for the current stage
public SelectVariable ( ) : Variable
리턴 Variable

Solve() 보호된 메소드

Solves the specified level.
protected Solve ( int level ) : void
level int /// The level. ///
리턴 void

Start() 공개 메소드

Start method
public Start ( long timeout ) : void
timeout long /// The timeout. ///
리턴 void

프로퍼티 상세

trail 보호되어 있는 프로퍼티

trail object
protected Trail,Cream trail
리턴 Trail