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

DiscussionTopicForm | |
---|---|

Title | The Herd Feeding Problem |

Forum | ForumAMPL |

This topic: Forum > ForumAMPL > ForumAMPL0002

Topic revision: r1333 - 2021-12-04 - TWikiGuest

Copyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Ideas, requests, problems regarding TWiki? Send feedback

Ideas, requests, problems regarding TWiki? Send feedback