# Difference: ForumAMPL0002 (1458 vs. 1459)

#### Revision 14592022-07-05 - TWikiGuest

Line: 1 to 1

 META TOPICPARENT name="ForumAMPL"

# 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

<--/commentPlugin-->

 META FORM FORM FIELD Title name="DiscussionTopicForm" Title The Herd Feeding Problem Forum ForumAMPL attachment="latexbb073afc7291d60a44c3ae1054f1bd59.png" attr="h" comment="" date="1559786958" name="latexbb073afc7291d60a44c3ae1054f1bd59.png" user="BaseUserMapping_666" version="1" attachment="latexd979737c83149bee942d839914157462.png" attr="h" comment="" date="1559786958" name="latexd979737c83149bee942d839914157462.png" user="BaseUserMapping_666" version="1" attachment="latexbd3b8bb617ca14c0528f51a316e61b37.png" attr="h" comment="" date="1559786958" name="latexbd3b8bb617ca14c0528f51a316e61b37.png" user="BaseUserMapping_666" version="1" attachment="latex1104a3fbbdb09d6434f4bb66a08ebb82.png" attr="h" comment="" date="1612422306" name="latex1104a3fbbdb09d6434f4bb66a08ebb82.png" user="BaseUserMapping_666" version="1"