Skip to main content
Namespace: Phoenix.Optimization

Overview

Interface used to define an algorithm for the Optimization Tool infrastructure.

Inheritance

IAlgorithm

Declaration

Description

Interface used to define an algorithm for the Optimization Tool infrastructure.

Public Member Functions

Properties

Member Function Documentation

RestoreCheckPoint

Restore a specific state of the analysis. This save state is provided to the infrastructure by the algorithm using the M:Phoenix.Optimization.IAlgorithmHost.SaveCheckPoint(System.String,System.String) method. Implemented in MockAlgorithm. Parameters:
  • saveState - String containing the information needed to restore the algorithm to a specific state.

Run

Initiates execution of the solver. The solver should throw an exception if for any reason it fails to find an optimum value. Implemented in MockAlgorithm.

SetConstraints

Used by the infrastructure to pass the constraints to the algorithm. Implemented in MockAlgorithm. Parameters:
  • constraints - List of PHXConstraints in the problem definition.

SetDesignVariables

Used by the infrastructure to pass the design variables to the algorithm. Implemented in MockAlgorithm. Parameters:
  • designVariables - List of PHXDesignVariables in the problem definition.

SetHost

Set the host interface to be used for callbacks. A typical implementation would look like: Implemented in MockAlgorithm. Parameters:
  • host - T:Phoenix.Optimization.IAlgorithmHost to be used by the algorithm for model evaluations

SetObjectives

Used by the infrastructure to pass the objectives to the algorithm. Implemented in MockAlgorithm. Parameters:
  • objectives - List of PHXObjectives in the problem definition.

ShowOptionsDialog

Called to display the algorithms custom options form. If an algorithm displays a custom options form, it is responsible for saving the options back into the algorithm. When the options for is displayed, it should be displayed using the ShowDialog method passing in the owner as an argument. If an algorithm wishes to use the default PropertyGrid options dialog, it should implement the method to simply return false. Implemented in MockAlgorithm. Parameters:
  • owner - Any object that implements IWin32Window that represents the top-level window that will own the modal dialog box.
Returns:
  • Returns true if the algorithm displayed a custom form, false if the default property grid form should be displayed.

Author

String containing the author of the algorithm. Implemented in MockAlgorithm.

Description

String containing the description of the algorithm. Implemented in MockAlgorithm.

DetailsReport

String containing the details report for the problem. The details report should contain information about the execution of the algorithm that can be used to troubleshoot it’s execution. The resutls report can either be formatted text or HTML. Implemented in MockAlgorithm.

HelpFilePath

String containing the relative path to the algorithm’s help file. The base directory used with the relative path it the assembly location. Implemented in MockAlgorithm.

HelpURL

String containing a URL that can be used get further help with the algorithm. Implemented in MockAlgorithm.

IconLocation

String containing the relative path to the algorithm’s icon. The base directory used with the relative path it the assembly location. Implemented in MockAlgorithm.

Keywords

String containing the keywords associated with the algorithm. Implemented in MockAlgorithm.

LicenseFeature

String containing the algorithms FlexLM license feature. If the algorithm does not use FlexLM licensing, LicenseFeature should be an empty string. Implemented in MockAlgorithm.

MaxNumberOfObjectives

Integer containing the maximum number of objectives supported by the algorithm. If there is no limit to the number of objectives, this property should be set to -1. Implemented in MockAlgorithm.

Name

String containing the name of the algorithm. Implemented in MockAlgorithm.

NumModelEvaluations

AlgorithmNumModelEvaluations indicating how many model evaluations are required for convergence. Implemented in MockAlgorithm.

Options

Object containing the options for the algorithm. Options should be public properties of the object. Implemented in MockAlgorithm.

ReleaseDate

String containing the release date for the algorithm in the format YYYY.MMDD Implemented in MockAlgorithm.

ResultsReport

String containing the results report for the problem. The results report can either be formatted text or HTML. Implemented in MockAlgorithm.

SupportsConstraints

FuzzyBoolean stating whether the algorithm supports constraints. Implemented in MockAlgorithm.

SupportsDiscreteVariables

FuzzyBoolean stating whether the algorithm supports discrete variables. Implemented in MockAlgorithm.

SupportsFailedRuns

Boolean stating whether the algorithm is able to handle failed model evaluations. Implemented in MockAlgorithm.

SupportsMinMax

FuzzyBoolean stating whether the algorithm supports minimize and maximize objectives. Implemented in MockAlgorithm.

SupportsMultipleObjectives

Boolean stating whether or not the algorithm supports multiple objectives. Implemented in MockAlgorithm.

SupportsNonSmoothResponses

FuzzyBoolean stating whether the algorithm supports non-smooth responses (objectives and constraints). If the algorithm supports small discontinuities set capability to ‘Maybe’ If the algorithm supports both small and large discontinuities set capability to ‘True If the algorithm does not support any discontinuities set capability to ‘False’ Implemented in MockAlgorithm.

SupportsSolveFor

FuzzyBoolean stating whether the algorithm supports the solve for value objective. Implemented in MockAlgorithm.

Version

String containing the version of the algorithm. Implemented in MockAlgorithm.

Property Documentation

Author

String containing the author of the algorithm. Implemented in MockAlgorithm.

Description

String containing the description of the algorithm. Implemented in MockAlgorithm.

DetailsReport

String containing the details report for the problem. The details report should contain information about the execution of the algorithm that can be used to troubleshoot it’s execution. The resutls report can either be formatted text or HTML. Implemented in MockAlgorithm.

HelpFilePath

String containing the relative path to the algorithm’s help file. The base directory used with the relative path it the assembly location. Implemented in MockAlgorithm.

HelpURL

String containing a URL that can be used get further help with the algorithm. Implemented in MockAlgorithm.

IconLocation

String containing the relative path to the algorithm’s icon. The base directory used with the relative path it the assembly location. Implemented in MockAlgorithm.

Keywords

String containing the keywords associated with the algorithm. Implemented in MockAlgorithm.

LicenseFeature

String containing the algorithms FlexLM license feature. If the algorithm does not use FlexLM licensing, LicenseFeature should be an empty string. Implemented in MockAlgorithm.

MaxNumberOfObjectives

Integer containing the maximum number of objectives supported by the algorithm. If there is no limit to the number of objectives, this property should be set to -1. Implemented in MockAlgorithm.

Name

String containing the name of the algorithm. Implemented in MockAlgorithm.

NumModelEvaluations

AlgorithmNumModelEvaluations indicating how many model evaluations are required for convergence. Implemented in MockAlgorithm.

Options

Object containing the options for the algorithm. Options should be public properties of the object. Implemented in MockAlgorithm.

ReleaseDate

String containing the release date for the algorithm in the format YYYY.MMDD Implemented in MockAlgorithm.

ResultsReport

String containing the results report for the problem. The results report can either be formatted text or HTML. Implemented in MockAlgorithm.

SupportsConstraints

FuzzyBoolean stating whether the algorithm supports constraints. Implemented in MockAlgorithm.

SupportsDiscreteVariables

FuzzyBoolean stating whether the algorithm supports discrete variables. Implemented in MockAlgorithm.

SupportsFailedRuns

Boolean stating whether the algorithm is able to handle failed model evaluations. Implemented in MockAlgorithm.

SupportsMinMax

FuzzyBoolean stating whether the algorithm supports minimize and maximize objectives. Implemented in MockAlgorithm.

SupportsMultipleObjectives

Boolean stating whether or not the algorithm supports multiple objectives. Implemented in MockAlgorithm.

SupportsNonSmoothResponses

FuzzyBoolean stating whether the algorithm supports non-smooth responses (objectives and constraints). If the algorithm supports small discontinuities set capability to ‘Maybe’ If the algorithm supports both small and large discontinuities set capability to ‘True If the algorithm does not support any discontinuities set capability to ‘False’ Implemented in MockAlgorithm.

SupportsSolveFor

FuzzyBoolean stating whether the algorithm supports the solve for value objective. Implemented in MockAlgorithm.

Version

String containing the version of the algorithm. Implemented in MockAlgorithm.