Private Sub PortfolioOptRuntime_AfterSimulationEvent( _
IterationsCompleted As Long, _
Trials As Long, _
MaxTrials As Long, _
Progress As Double, _
WasAborted As Boolean, _
WasStoppedOnError As Boolean, _
WasStoppedOnPrecision As Boolean, _
HasNewBestSolution As Boolean)
'Your code is here
End SubIn this signature, parameters or arguments are defined as follows:
IterationsCompleted = Number of iterations completed
Trials = Number of trials completed for this simulation
MaxTrials = Number of trials scheduled to run (total trials per simulation)
Progress = Percent of trials completed (expressed as a decimal), 0 to 1.0
WasAborted = True if manually stopped
WasStoppedOnError = True if stopped on error
WasStoppedOnPrecision = True if stopped on precision control
HasNewBestSolution = New value of objective; for optimizations, was this a new best solution