Top student: All my teachers are academic whizzes!.
Chapter 65: Modeling Training
In the first lesson of modeling training, Professor Geng Minyu did not talk about anything too profound.
Starting with the standard form of linear programming, then moving on to the basic idea of the simplex method, and finally to duality theory... this computer science professor's lectures are quite different from those of professors in the mathematics department.
The professors in the Department of Mathematical Sciences tend to focus more on theoretical derivation, and each step must be clearly written on the blackboard.
Geng Minyu, on the other hand, focuses more on practical application, pairing each concept with a specific case to encourage students to think deeply about the logic behind that case.
Han Chuan didn't know which of the two teaching methods was better, but he vaguely felt that Professor Geng's teaching method might be more suitable for mathematical modeling.
"Alright, that concludes today's lesson."
After finishing today's lesson, Professor Geng Minyu turned around and left an assignment on the blackboard.
"Suppose a factory produces two products, A and B, consuming three raw materials. Each unit of product A consumes: 2 kg of raw material #1, 3 liters of raw material #2, and 5 liters of raw material #3. Each unit of product B consumes 4 kg of raw material #1, 2 liters of raw material #2, and 1 liter of raw material #3."
「现厂区三种原料的库存分别为800千克、600升、750升。A产品每件利润70元,B产品每件利润90元。B产品产量不得超过A产品产量的1.5倍,产量必须为整数,最优化原料如何分配。」
"Also: Suppose the profit of product B increases from 90 yuan to 120 yuan. Question: Can the original optimal production plan still be used? At what profit level will the original plan no longer be optimal?"
After finishing the problem, Professor Geng turned around, smiled at the students in the laboratory, and said, "Consider this problem your homework for this week."
"The requirements are very simple: just follow the format of a formal competition paper."
"Please submit the electronic version to my email address and bring the hard copy to class before class next Wednesday. You can discuss any questions in the course group or ask them during class next week."
"Alright, get out of class dismissed!"
......
After assigning the homework, Professor Geng Minyu left the laboratory with his thermos cup. The groups of students participating in the modeling competition in the classroom also began to pack up and prepare to leave get out of class.
Sitting behind Han Chuan, Liu Lu stood up and walked over. She glanced at the questions on the blackboard, smiled, and asked, "How was the first class, Han Chuan?"
After copying the questions into his notebook, Han Chuan glanced at them and said, "Not bad, doesn't seem too difficult."
Hearing this, Liu Lu raised an eyebrow and asked, "So, what are you planning to do?"
This question was indeed not difficult for her and Xu Zhiyuan, who had already participated in two modeling competitions; it was the kind of question that top students would ask for after-class assignments.
However, for the students in the class who were participating in a modeling competition for the first time, and for Han Chuan, this question was still quite difficult.
After all, mathematical modeling and writing mathematical papers are two different things.
Writing a paper can take several months to polish. If you get stuck on a problem, you can put it aside for a while, change your approach, accumulate some inspiration, and take your time.
However, modeling competitions are different. The competition time is very short, only three days and three nights. After receiving the problem, you must complete the entire process from understanding the problem to modeling, solving, verifying, and writing the paper in a very short time.
This kind of fast-paced practical ability and time management skills cannot be developed by reading a few books.
Many newcomers with a strong mathematical foundation often drag down the entire team when they are participating in a competition for the first time because they are unfamiliar with the process, do not know how to cooperate with teammates, do not know how to write a paper, and so on.
At his desk, Han Chuan looked at the modeling problem he had just copied down and pondered for two and a half seconds.
"This question is really not difficult."
He paused for a moment, picked up the ballpoint pen on the table, found a blank sheet of paper, and wrote:
"The first problem is to find the optimal allocation of raw materials while ensuring that the output is an integer."
"I have two ideas in mind right now."
"The first type is standard linear programming. Let the output of product A be x₁ and the output of product B be x₂. The objective function is max z = 70x₁ + 90x₂."
"With three raw material constraints, one proportional constraint, and an integer constraint, modeling only takes a few minutes at most."
Upon hearing this, Liu Lu's eyes showed a hint of surprise and suspicion.
A few minutes?
That's quite a boast. Even Xu Zhiyuan might not be able to solve the modeling part of this problem in five minutes.
Han Chuan didn't notice Liu Lu's gaze. He spoke and wrote at the same time, his pen tracing a few simple equations on the paper.
"To find the optimal solution, we can first run a linear relaxation algorithm to see the approximate range. The optimal relaxation solution is x₁≈266.67, x₂=400, and the profit is 54667. However, x₁ is not an integer, so we need to add a loop integer constraint."
「不过看看原料2的约束——3x₁+2x₂≤600——x₁取267的时候,单是A产品就能吃掉801升,直接超限。所以x₁必须从266往下压。」
"In other words, the decision variables are set as A and B, the objective function is 70x₁ + 90x₂, there are three raw material constraints plus one output ratio constraint, plus an integer constraint, and then you can just apply the simplex method directly."
"It's very simple."
As he spoke, he scribbled a few lines of data on the manuscript paper with his pen, then handed the paper to Liu Lu, smiling as he spoke.
"In standard form, this problem has three constraints: x₂≤1.5x₁, and x₁, where x₂∈N. Just solve it."
Upon hearing this, Liu Lu suspiciously took the manuscript paper and looked at the formula on it.
【x₁=100,x₂=150;验证:原料1:2×100+4×150=800;原料2:3×100+2×150=600。原料3:5×100+150=650≤750,剩余100升。比例约束150≤150,取等。】
[This point simultaneously depletes both raw material 1 and raw material 2; therefore, it is the integer optimal solution, with a profit of 20500.]
"So fast? You really solved it?"
Looking at the equations and answers on the draft paper, Liu Lu frowned and began to calculate.
Although this question was not difficult for someone like her who had participated in two competitions, she was, after all, a computer science student, not a mathematics major.
Even though Han Chuan had already listed out the detailed calculation process, it would still take her some time to check and recalculate.
However, before she could finish the calculation, Xu Zhiyuan, the leader of the three-person team, said from the side: "This calculation is correct. 20500 is indeed the optimal solution."
Taking the draft paper from Liu Lu's hand, Xu Zhiyuan glanced at the equations on it, then looked at Han Chuan and asked with interest, "You just said there are two ways to solve the first step. This is the first one. What about the second one?"
It's not surprising that Han Chuan could solve this homework problem so quickly, but it's interesting that he could give two different approaches on the spot.
.....
PS: Thank you Bai Ye Qianqiu for the generous donation of 6666 Qidian coins! Thank you so much! Thanks♪(・ω・)ノ.
(P.S.: Just wondering, should I add more chapters tomorrow if I reach 10000 points? 10000 points during the new book period will get me an extra chapter~)
You'll Also Like
-
Naruto's Pirate Fruits are Invincible
Chapter 604 15 minute ago -
I, the Tyrannosaurus Rex, stand at the top of the food chain.
Chapter 633 15 minute ago -
In One Piece: I can copy any talent
Chapter 150 15 minute ago -
I became the Dragon King in the Dragon Clan.
Chapter 686 15 minute ago -
And that's how I became the chat group admin.
Chapter 461 15 minute ago -
Naruto: Everyone except me has their gender reversed
Chapter 382 15 minute ago -
Fantasy: Become stronger by devouring corpses
Chapter 234 15 minute ago -
Primordial Era: I, the strongest Buddha, start by picking up entries from the West!
Chapter 174 15 minute ago -
Gao Wu: I'm seventy years old, what the hell is the "Lying Down System"?
Chapter 142 15 minute ago -
Douluo Continent: The Martial Soul Emperor Armor, Purges All Evil
Chapter 213 15 minute ago