Diet choice in patches: Time-constraint and state-space solutions