当前位置:网站首页>Excel record of integer programming optimization model to solve the problem
Excel record of integer programming optimization model to solve the problem
2022-08-01 04:27:00 【Moqim Flourite.】
Article table of contents
Title:
1. First, extract information according to the requirements of the question, and list the mathematical model:
Two, solve the answer through "Solver" in Excel:
1. Create a data table:
2. Set the data according to the mathematical model:
Maximum Value: =B7*B2+C7*C2+D7*D2+E7*E2
Constraints: =B7*B3+C7*C3+D7*D3+E7*E3
3. Use the Solver function to solve:
Set the goal: To set the position for a formula (which we just wrote) at A10 in the table;
Set the variable cells: the selected number of four cells, because in the mathematical modelThey add constraints for variables;
: add according to two formulas in the mathematical model:
i. All variables are integers:
ii. Constraint (total weight) less than or equal to 50:
After all are added, this is the interface——
Then click Solve:
The maximum value and the quantity of each item are known.
Click "OK" to keep the calculated value.
This completes the task.
References
边栏推荐
- 深圳某游戏研发公司给每个工位都装监控,网友:堪比坐牢!
- Flutter "Hello world" program code
- MySQL4
- The difference between scheduleWithFixedDelay and scheduleAtFixedRate
- 软件测试周刊(第82期):其实所有纠结做选择的人心里早就有了答案,咨询只是想得到内心所倾向的选择。
- 风险策略调优中重要的三步分析法
- 数组问题之《下一个排列》、《旋转图像》以及二分查找之《搜索二维矩阵》
- typescript27-枚举类型呢
- Immutable
- 出现Command ‘vim‘ is available in the following places,vim: command not found等解决方法
猜你喜欢
FFmpeg 搭建本地屏幕录制环境
Message queue design based on mysql
干货!如何使用仪表构造SRv6-TE性能测试环境
Article summary: the basic model of VPN and business types
这里有110+公开的专业数据集
button remove black frame
What is dynamic programming and what is the knapsack problem
Four implementations of
batch insert: have you really got it? typescript24-类型推论
typescript26 - literal types
随机推荐
时时刻刻保持敬畏之心
在互联网时代,有诸多「互联网+」模式的诞生
Flutter "Hello world" program code
认真对待每一个时刻
typescript22-接口继承
Risk strategy important steps of tuning method
Mysql基础篇(约束)
项目风险管理必备内容总结
动态规划 01背包
High Numbers | 【Re-integration】Line Area Score 880 Examples
Excel做题记录——整数规划优化模型
Valentine's Day Romantic 3D Photo Wall [with source code]
移动端页面秒开优化总结
What is dynamic programming and what is the knapsack problem
高数 | 【重积分】线面积分880例题
ICML2022 | Deep Dive into Permutation-Sensitive Graph Neural Networks
leetcode:126. Word Solitaire II
TypeScript simplifies running ts-node
黑客到底可以厉害到什么程度?
Passive anti-islanding-UVP/OVP and UFP/OFP passive anti-islanding model simulation based on simulink