Description This command sets the starting temperature value for an optimization using the Simulated Annealing method.
Syntax SetMzrAnnealStartTemperature startTemp
Parameters startTemp As Double Starting temperature value for the simulated annealing optimization method. A value of -1 specifies use of the "Auto" option, in which the merit function is randomly sampled within the variable space and a value is auto-determined such that the simplex can step over the maximum value found 80% of the time.
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
|