Public Function CBAfterSimulation( _
aIterations As Long, _
aTrials As Long, _
aMaxTrials As Long, _
aProgress As Double, _
aWasAborted As Boolean, _
aWasStopOnError As Boolean, _
aWasStoppedOnPrecision As Boolean, _
aHasNewBestSolution As Boolean) _
As Integer
'the code is here
End Function
In this interface, parameters or arguments are defined as follows:
aIterations = The number of the simulation in a multi-simulation run, usually 1
aTrials = Number of trials run
aMaxTrials = Number of trials scheduled to run
aProgress = Percent of trials completed
aWasAborted = True if manually stopped
aWasStopOnError = True if stopped on error
aWasStoppedOnPrecision = True if stopped on precision control
aHasNewBestSolution = New value of objective