当前位置:网站首页>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
边栏推荐
- The maximum quantity leetcode6133. Grouping (medium)
- leetcode:126. Word Solitaire II
- PMP工具与技术总结
- Dart named parameter syntax
- [FPGA tutorial case 43] Image case 3 - image sobel edge extraction through verilog, auxiliary verification through MATLAB
- Hackers can how bad to what degree?
- 在互联网时代,有诸多「互联网+」模式的诞生
- 怀念故乡的月亮
- Dry goods!How to Construct SRv6-TE Performance Test Environment Using Instrumentation
- 7月编程排行榜来啦!这次有何新变化?
猜你喜欢
随机推荐
开源许可证 GPL、BSD、MIT、Mozilla、Apache和LGPL的区别
【愚公系列】2022年07月 Go教学课程 023-Go容器之列表
IJCAI2022 | Hybrid Probabilistic Reasoning with Algebraic and Logical Constraints
微软 Win10 照片磁贴后的又一“刺客”,谷歌 Chrome 浏览器将在新标签页展示用户照片
typescript27-枚举类型呢
6-23漏洞利用-postgresql代码执行利用
「以云为核,无感极速」顶象第五代验证码
typescript20-接口
【云原生之kubernetes实战】kubernetes集群的检测工具——popeye
win10 fixed local IP
Four implementations of
batch insert: have you really got it? Dart named parameter syntax
Unknown Bounded Array
MySQL4
软件测试面试(三)
基于STM32设计的UNO卡牌游戏(双人、多人对战)
解决ffmpeg使用screen-capture-recorder录屏,有屏幕缩放的情况下录不全的问题
UE4 rays flashed from mouse position detection
Invalid classes inferred from unique values of `y`. Expected: [0 1 2], got [1 2 3]
请问shake数据库中为什么读取100个collection 后,直接就退出了,不继续读了呢?