Description This command sets the number of temperature reduction steps to apply during a Simulated Annealing optimization. This is equivalent to "toggling" this option in the optimization dialog AND specifying the number of steps.
Syntax SetMzrAnnealStopAfterSteps numSteps
Parameters numSteps As Long Number of temperature reduction steps to apply during Simulated Annealing.
Example The following example sets the starting conditions for an optimization. Note that in the example, SetMzrAnnealStopBelowMinTemperature is called after SetMzrAnnealStopAfterSteps. This means that the stopping criteria is controlled by the min temperature setting.
Sub Main
Dim multiStarts As Long Dim startTemp As Double Dim stopSteps As Long Dim stopMinTemp As Double Dim tempReduceFrac As Double
multiStarts = 15 startTemp = -1 stopSteps = 50 stopMinTemp = 0.001 tempReduceFrac = 0.9
SetMzrMultiStarts multiStarts SetMzrAnnealStartTemperature startTemp SetMzrAnnealStopAfterSteps stopSteps SetMzrAnnealStopBelowMinTemperature stopMinTemp SetMzrAnnealTemperatureReduceFraction tempReduceFrac
Print "Multi Starts: " & Chr(9) & multiStarts Print "Start Temp: " & Chr(9) & startTemp Print "Stop Steps: " & Chr(9) & stopSteps Print "Stop Min Temp: " & Chr(9) & stopMinTemp Print "Temp Reduc. Frac: " & Chr(9) & tempReduceFrac
End Sub
See Also
|