| CustomAnnealingSchedule(Int32, Double, Double) Constructor |
Constructs a CustomAnnealingSchedule instance.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public CustomAnnealingSchedule(
int[] iterations,
double[] temperatures,
double tolerance
)
Public Sub New (
iterations As Integer(),
temperatures As Double(),
tolerance As Double
)
public:
CustomAnnealingSchedule(
array<int>^ iterations,
array<double>^ temperatures,
double tolerance
)
new :
iterations : int[] *
temperatures : float[] *
tolerance : float -> CustomAnnealingSchedule
Parameters
- iterations Int32
- The number of iterations to perform at each temperature.
- temperatures Double
- 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