C# Class SwarmOps.Optimizers.Parallel.DE

Parallel version of DE which computes the fitness of its agents in parallel. Assumes the fitness function is thread-safe. Should only be used with very time-consuming optimization problems otherwise basic DE will execute faster because of less overhead.
Inheritance: Optimizer
显示文件 Open project: DanWBR/dwsim3

Public Methods

Method Description
DE ( ) : System.Diagnostics

Construct the object.

DE ( Problem problem ) : System.Diagnostics

Construct the object.

DE ( int numAgentsMultiple ) : System.Diagnostics

Construct the object.

DE ( int numAgentsMultiple, Problem problem ) : System.Diagnostics

Construct the object.

GetCR ( double parameters ) : double

Get parameter, CR, aka. crossover probability.

GetF ( double parameters ) : double

Get parameter, F, aka. differential weight.

GetNumAgents ( double parameters ) : int

Get parameter, Number of agents, aka. population size.

Optimize ( double parameters ) : Result

Perform one optimization run and return the best found solution.

Method Details

DE() public method

Construct the object.
public DE ( ) : System.Diagnostics
return System.Diagnostics

DE() public method

Construct the object.
public DE ( Problem problem ) : System.Diagnostics
problem Problem Problem to optimize.
return System.Diagnostics

DE() public method

Construct the object.
public DE ( int numAgentsMultiple ) : System.Diagnostics
numAgentsMultiple int Population size multiple, e.g. 4 ensures populations are sized 4, 8, 12, 16, ...
return System.Diagnostics

DE() public method

Construct the object.
public DE ( int numAgentsMultiple, Problem problem ) : System.Diagnostics
numAgentsMultiple int Population size multiple, e.g. 4 ensures populations are sized 4, 8, 12, 16, etc.
problem Problem Problem to optimize.
return System.Diagnostics

GetCR() public method

Get parameter, CR, aka. crossover probability.
public GetCR ( double parameters ) : double
parameters double Optimizer parameters.
return double

GetF() public method

Get parameter, F, aka. differential weight.
public GetF ( double parameters ) : double
parameters double Optimizer parameters.
return double

GetNumAgents() public method

Get parameter, Number of agents, aka. population size.
public GetNumAgents ( double parameters ) : int
parameters double Optimizer parameters.
return int

Optimize() public method

Perform one optimization run and return the best found solution.
public Optimize ( double parameters ) : Result
parameters double Control parameters for the optimizer.
return Result