Interface with the Master Algorithm Sample Clauses

Interface with the Master Algorithm. ‌ The variable stepsize calculator is called by the master algorithm before each doStep. It is given by the master algorithm the current time, the previous stepsize, the current output values, and the (estimated) output derivatives of the FMUs. The variable stepsize calculator returns to the master algorithm the next stepsize. After a doStep, the master algorithm asks the variable stepsize calculator to validate the taken step, i.e. to check whether any constraints have been violated. If that is the case, a warning is issued. If all FMUs support rollback, a rollback is initiated and the master algorithm asks the variable stepsize calculator for a new, reduced stepsize. The algorithm for derivative estimation, see Section C.3.2, has been moved from the variable stepsize calculator to the ▇▇▇. This is done so that the master algorithm may estimate derivatives and supply these to FMUs that have the capability canInterpolateInputs. To be clear, if the FMU that sup- plies these signals also provides derivatives, these are used, but if that FMU has maxOutputDerivativeOrder=0 (or <=1 in the case of second order input derivatives]), the estimated values are used.