Method OnValidate OnValidate() Validate and initialize the Solver. Declaration protected virtual void OnValidate()