Action selection under constraints: dynamic optimization of behavior in machines and humans | IEEE Conference Publication | IEEE Xplore