Minimum risk criterion for optimal allocation of crops