Description This command sets the minimum temperature stopping criteria for a Simulated Annealing optimization. This is equivalent to toggling the option in the dialog AND specifying the minimum temperature value.
Syntax SetMzrAnnealStopBelowMinTemperature minTemp
Parameters minTemp As Double Minimum temperature value below which Simulated Annealing stops and final Simplex optimization proceeds.
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
|