Constructs a CustomAnnealingSchedule instance.
Namespace:
CenterSpace.NMath.AnalysisAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public CustomAnnealingSchedule( int iteration, DoubleVector temperatures ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ iteration As Integer, _ temperatures As DoubleVector _ ) |
| Visual C++ |
|---|
public: CustomAnnealingSchedule( int iteration, DoubleVector^ temperatures ) |
Parameters
- iteration
- Type: System..::.Int32
The number of iterations to perform at each temperature.
- temperatures
- Type: CenterSpace.NMath.Core..::.DoubleVector
The temperature at each step.
Remarks
Uses the default tolerance.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the number of iterations is less than one, there is less than one temperature, any temperature is negative, or the last temperature is not zero. |