Maintain min residual and return that instead

Print debug information.
Warn if objective increases.