Detection and Remediation of Stagnation in the Nelder--Mead Algorithm Using a Sufficient Decrease Condition | Synapse