Time allotment - time management
These problems can be done in one class hour if students have access to the appropriate technology. We have used them as a course end activity in a discrete dynamical system course which leads into the calculus. Depending on the section, some of the student have studied formal (calculus) optimization methods and others have not. The latter will optimize by plotting.
Or this could be a homework assignment requiring about two hours.