Discussion Forum »
AMPL Language »
The Herd Feeding Problem
When using AMPL to model
the Herd Feeding Problem you can "copy-and-paste" much of the model from
the Whiskas Cat Food Problem. However, there are both "absolute" constraints (the upper bound on the amount of Pasture) and "relative" constraints (the lower bound on the percent of protein) that need to be modelled. What is the best way to do this?
--
TWikiAdminGroup - 17 Mar 2008
There are two ways to do this:
1) Do some algebra to incorporate the percentage requirements into the coefficients from an absolute requirements, e.g.,
becomes
2) Model the absolute requirements and the percentage requirements separately, e.g.,
AMPL will take care of the simplification.
--
TWikiGuest - 17 Mar 2008