简体   繁体   中英

LP Model - Using Solver

Can anyone help me creating the requirements for LP Solver for below scenario please.

enter image description here Requirements: The chocolate in your overall feed plan (in pounds) cannot exceed the amount of nonchocolate poundage. Whether a product is considered chocolate or not is shown in the table (YES = chocolate, NO = not chocolate). • No one feeding product can make up more than 25% of the total pounds needed to create an acceptable feed mix. • There are two cereals (Chocolate Lucky Charms and Cap'n Crunch). Combined, they can be no more than 40% (in pounds) of the total mix required to meet the mix requirements. • Determine the optimal levels of the seven products to create your weekly feed plan that minimizes cost

So, threw this together, and made some assumptions but did not include minimum constraints on protein etc. 在此处输入图像描述

You can add control constraints for calcium etc as you wish - you can see how I have used the constraints already.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM