当前位置:网站首页>Excel做题记录——整数规划优化模型
Excel做题记录——整数规划优化模型
2022-08-01 04:12:00 【Moqim Flourite.】
文章目录
题目:
一、首先根据题目要求提取信息,并列出数学模型:
二、通过Excel里的“规划求解”来解出答案:
1、创建数据表格:
2、根据数学模型设置数据:
最大价值量: =B7*B2+C7*C2+D7*D2+E7*E2
约束量: =B7*B3+C7*C3+D7*D3+E7*E3
3、使用“规划求解”功能求解:
设定目标:要为一个公式(我们刚刚写了),在表中的位置为A10;
设定可变单元格:选中数量的那四个单元格,因为在数学模型中他们为变量;
添加约束:根据数学模型中的两个公式添加:
i.变量都为整数:
ii.约束量(总重量)小于等于50:
都添加好后,就是这个界面——
然后点击“求解”:
最大价值量以及每种物品的数量就都一清二楚了。
点击“确定”,保留求出的值。
到这就完成这道题目了。
参考文章
边栏推荐
- New York University et al | TM-Vec: Template Modeling Vectors for Rapid Homology Detection and Alignment
- 简单易用的任务队列-beanstalkd
- TIM登陆时提示00001(TIM00001)
- Mysql中的数据类型和运算符
- Introduction to the Elastic Stack
- 预言机简介
- Flutter Tutorial 02 Introduction to Flutter Desktop Program Development Tutorial Run hello world (tutorial includes source code)
- Dynamic Programming 01 Backpack
- Advice given by experts with four years of development experience in Flutter tutorial
- Input输入框光标在前输入后自动跳到最后面的bug
猜你喜欢
对无限debugger的一种处理方式
Mysql基础篇(约束)
Hackers can how bad to what degree?
Interview Blitz 69: Is TCP Reliable?Why?
Step by step hand tearing carousel Figure 3 (nanny level tutorial)
情人节浪漫3D照片墙【附源码】
The fledgling Xiao Li's 112th blog project notes: Wisdom cloud intelligent flower watering device actual combat (1) - basic Demo implementation
开源项目站点必备&交流区功能
微软 Win10 照片磁贴后的又一“刺客”,谷歌 Chrome 浏览器将在新标签页展示用户照片
预言机简介
随机推荐
Character encoding and floating point calculation precision loss problem
"Youth Pie 2": The new boyfriend stepped on two boats, and the relationship between Lin Miaomiao and Qian Sanyi warmed up
Unity在BuildIn渲染管线下实现PlanarReflection的初级方法
This map drawing tool is amazing, I recommend it~~
【kali-信息收集】枚举——DNS枚举:DNSenum、fierce
win10 固定本机IP
Basic Theoretical Knowledge of Software Testing - Use Cases
软件测试基础理论知识—用例篇
TypeScript simplifies running ts-node
[FPGA tutorial case 43] Image case 3 - image sobel edge extraction through verilog, auxiliary verification through MATLAB
Write a method to flatten an array and deduplicate and sort it incrementally
【搜索专题】看完必会的BFS解决最短路问题攻略
黑客到底可以厉害到什么程度?
怀念故乡的面条
Weekly Summary (*67): Why not dare to express an opinion
leetcode6133. 分组的最大数量(中等)
【云原生之kubernetes实战】kubernetes集群的检测工具——popeye
预言机简介
Message queue MySQL table for storing message data
MySQL4