C# Class SwarmOps.Optimizer

Base-class for an optimizer.
Inheritance: Problem
显示文件 Open project: DanWBR/dwsim3 Class Usage Examples

Public Methods

Method Description
Fitness ( double parameters, double fitnessLimit ) : double

Compute fitness by performing one optimization run.

Optimize ( ) : Result

Optimize using default parameters.

Optimize ( double parameters ) : Result

Perform one optimization run and return the best found solution.

Optimize ( double parameters, double fitnessLimit ) : Result

Perform one optimization run and return the best found solution.

Optimizer ( )

Construct the object. This does not set the Problem which has to be done before the optimizer is being run.

Optimizer ( Problem problem )

Construct the object.

Protected Methods

Method Description
Trace ( int iteration, double fitness, bool feasible ) : void

Trace fitness progress of optimization run.

Method Details

Fitness() public method

Compute fitness by performing one optimization run.
public Fitness ( double parameters, double fitnessLimit ) : double
parameters double Control parameters for the optimizer.
fitnessLimit double Preemptive Fitness Limit
return double

Optimize() public method

Optimize using default parameters.
public Optimize ( ) : Result
return Result

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

Optimize() public method

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

Optimizer() public method

Construct the object. This does not set the Problem which has to be done before the optimizer is being run.
public Optimizer ( )

Optimizer() public method

Construct the object.
public Optimizer ( Problem problem )
problem Problem Problem to optimize.

Trace() protected method

Trace fitness progress of optimization run.
protected Trace ( int iteration, double fitness, bool feasible ) : void
iteration int Iteration number.
fitness double Best-found fitness for this optimization run.
feasible bool
return void