Diet Problem in Linear Programming

The goal of Diet problem is to minimize the cost of food satisfying nutrient constraints.
873.0 次下载
更新时间 2013/10/24

查看许可证

This code uses MATLAB inbuilt LP solver (linprog). There are 3 nutrients in the problem ( Carbohydrates , proteins and fat) which can be in between some minimum and maximum for a healthy diet. Objective here is to find cheapest diet satisfying nutrients requirement. There are five types of food with its cost. In this particular problem, Rice and Broccoli happens to be the cheapest diet. This file is for illustrating optimization in linear programming and not a suggestion for a healthy diet.

引用格式

Sathyanarayan Rao (2025). Diet Problem in Linear Programming (https://ww2.mathworks.cn/matlabcentral/fileexchange/44070-diet-problem-in-linear-programming), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Food Sciences 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0