minimal-error controller