Models and tests of optimal density and maximal yield for crop plants