| CustomAnnealingSchedule(Int32, DoubleVector, Double) Constructor |
Constructs a CustomAnnealingSchedule instance.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public CustomAnnealingSchedule(
int[] iterations,
DoubleVector temperatures,
double tolerance
)
Public Sub New (
iterations As Integer(),
temperatures As DoubleVector,
tolerance As Double
)
public:
CustomAnnealingSchedule(
array<int>^ iterations,
DoubleVector^ temperatures,
double tolerance
)
new :
iterations : int[] *
temperatures : DoubleVector *
tolerance : float -> CustomAnnealingSchedule
Parameters
- iterations Int32
- The number of iterations to perform at each temperature.
- temperatures DoubleVector
- The temperature at each step.
- tolerance Double
- The error tolerance.
Exceptions Exception | Condition |
---|
MismatchedSizeException | Thrown if the number of iterations is
different from the number of temperatures.
|
InvalidArgumentException |
Thrown if the number of steps is less than one, any iteration is less than one,
any temperature is negative or the last temperature is not zero.
|
See Also