Navigation: Scripting Reference Manual > Functions & Subroutines > GetMzrMultiStarts

 

GetMzrMultiStarts

 

Contact Us: fredsupport@photonengr.com

 

Description

This command retrieves the number of multiple random restarts currently assigned to the optimization method.  Only methods supporting multiple random restarts use this entry.

 

 

Syntax

numStarts = GetMzrMultiStarts()

 

 

Parameters

numStarts (Long)

Number of restarts currently assigned to the optimization.

 

 

Example

The following example retrieves the starting conditions for an optimization and prints the parameters to the output window.

 

Sub Main

 

    Dim multiStarts As Long

    Dim startTemp As Double

    Dim stopSteps As Long

    Dim stopMinTemp As Double

    Dim tempReduceFrac As Double

 

    multiStarts = GetMzrMultiStarts()

    startTemp = GetMzrAnnealStartTemperature()

    stopSteps = GetMzrAnnealStopAfterSteps()

    stopMinTemp = GetMzrAnnealStopBelowMinTemperature()

    tempReduceFrac = GetMzrAnnealTemperatureReduceFraction()

 

    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

Optimization Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC