当前位置:网站首页>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
边栏推荐
- 【愚公系列】2022年07月 Go教学课程 024-函数
- SQL Analysis of ShardingSphere
- 请问shake数据库中想把源的db0的数据同步到目的db5,参数怎么设置呢?
- 软件测试面试(三)
- 【目标检测】YOLOv7理论简介+实践测试
- Weekly Summary (*67): Why not dare to express an opinion
- Difference Between Compiled and Interpreted Languages
- typescript27 - what about enumeration types
- Introduction to the Elastic Stack
- EntityFramework saves to SQLServer decimal precision is lost
猜你喜欢
Introduction to the Elastic Stack
Message queue MySQL table for storing message data
Flutter "Hello world" program code
typescript22-接口继承
Four implementations of
batch insert: have you really got it? 深圳某游戏研发公司给每个工位都装监控,网友:堪比坐牢!
Article summary: the basic model of VPN and business types
TypeScript简化运行之ts-node
C# | 使用Json序列化对象时忽略只读的属性
数组问题之《两数之和》以及《三数之和 》
随机推荐
Valentine's Day Romantic 3D Photo Wall [with source code]
软件测试基础理论知识—用例篇
请问表格储存中用sql只能查询到主键列,ots sql非主键不支持吗?
Advice given by experts with four years of development experience in Flutter tutorial
故乡的素描画
「以云为核,无感极速」顶象第五代验证码
25. 这三道常见的面试题,你有被问过吗?
软件测试周刊(第82期):其实所有纠结做选择的人心里早就有了答案,咨询只是想得到内心所倾向的选择。
typescript23-元组
Make your Lottie support word wrapping in text fields
typescript19-对象可选参数
The maximum quantity leetcode6133. Grouping (medium)
/etc/fstab
【愚公系列】2022年07月 Go教学课程 025-递归函数
罗技鼠标体验记录
Message queue design based on mysql
typescript26 - literal types
律师解读 | 枪炮还是玫瑰?从大厂之争谈元宇宙互操作性
Game Theory (Depu) and Sun Tzu's Art of War (42/100)
深圳某游戏研发公司给每个工位都装监控,网友:堪比坐牢!