Mathematical modeling record (1)

xiaoxiao2021-03-06  96

Author: Gu Jian Gu Jian

Hey! Originally, I didn't have to go, but in a few days of training, I found that every member of this group is still not bad. So, it was dispatched.

Let's begin to study Mathematical Modeling and Mathematical Experiments, Begin to Learn Matlab Software.

Originally, I reported on the school's mathematical modeling contest, but because the time of summer vacation is tight, things are more (my time is just the opposite, the summer vacation is my most busy), so I didn't go into a summer mathematical modeling training. I wanted to study hard today. Even if I don't have a prize, it is also an experience. Experience what is the national contest. Unfortunately, this year's training I didn't go a few times, I originally wanted to give up. Didn't think of training, wait for the training, the teacher made us herself, the previous classmates came to me, let me join their group. Their team started

Time

The staff assigned by the teacher is a group of three, but a classmate has quit, and they have to come to me, let me join their group. Hey! Originally, I didn't go. Now let me participate in the exercise, don't you let me die ~ _ ~! But in the end, I'm still difficult to die, I can't see it down, so I promised it verbally. Just as I sent this batch, I didn't expect another classmate. It is also for this matter. It is a person in which they have a person. Now I lack a person who will write a program, let me join their group. Hey! Why give such a rare topic! I have promised someone else, and I promise this group, it seems that there is something unlike, so I said that I will consider it. The next day gives a reply.

The next day, I adopted it, I heard that the MM of the first group didn't want to do it, hehe! How can I understand this, I'm so good for me. But I don't know when the mm announces this major decision! ^ _ ^

In the afternoon, I decided to do with the second group, but there is no big grasp (now it), let alone our goal is not a grand prize, a tacit cooperation between students! Hey! In the afternoon, I discussed it, it seems that they are more serious, decide whether there is no problem.

In the evening, the team leader in the first group came to me, saying that the evening group dispatched the self-study, discuss the title, and research. Hey! Still studying! People are dissolved. Don't have already, I still tell the leader of the shocking, weeping ghosts. Hey, I want everyone to know the result. However, the drama is that I am going to let him tell the MM for me. I didn't think that MM first told him that she didn't want to go. Hey! This time the MM chooses is accurate! It's really shot! In this way, the first group was dissolved, leaving a light bank commander. (Later, I heard that the teacher arranged a new player to the classmate). However, I still want to say to this friend, my brother is sorry!

So, I joined the present group in glory. Through our study in a worship, I think I have no choice, everyone can take a long time.

member

Very long

Lu Xiaosu (female)

Writing, computer programming

Liu Jingcheng

Thinking on the problem, find problems, writing

Sword

Computer programming, thinking

I hope that before we officially participate in the game, the teacher should not separate our group. After all, we have already grinded. (Individual feeling, hope the facts is true)?

Of course, through the table, I don't have any other advantages, in addition to a little weak computer technology knowledge, so since I promised someone to do it well, study hard. The most upset is to learn Matlab.

To learn a new programming in half a month (you can't say a programming, you can only say a new programming environment), there is still a challenging for my non-computer people. . Hey, but I am like challenges, and in the process of self-study in these days, I seem to find me a lot of shadows. Maybe this time I can lay a certain foundation for my Dongshan.

?

Now, I have learned Matlab for three days, I wrote some small things, I can basically meet the requirements of the topic here, but to make promotion, it needs to be improved.

?

Source Code:

?

% ******************************************************** **********

%? This is help information about findminparam () function.

% ?????????? Find the min number in the matrix.

% ?????????? designer: ?? 剑

% ?????????????????????? qi jingcheng

% ?????????????????????? lv xiaoshu

% ?????????? verison:

1.0.0

? Finish Date:

27/08/2004

% ????? Copyright (c) BY Sword, MR Liu, Miss LV

% ?????

%? USAGE:

% ?????? Findminparam (A, ICOUNT)

% ?????????????????? a is matrix.

% ?????????????????? Icount is counter.

% WARING:

% ??????When buy function, The massix will be change.

%

% ?? Sword Website: http://blog.9cbs.net/alonesword/

% ******************************************************** **********

A = [INF, 5, 6, 17; 10, INF, 2, 20; 8, 16, INF, 8; 6, 5, 21, INF];

SUCC = 0;

LNG = Length (a);

RST = Zeros (3, LNG);

For count = 1: iCount

??? for rowcount = 1: LNG;

? ?????? for colcount = 1: LNG;

?????? ??????? IF (min (MIN (a)) == A (Rowcount, Colcount));

% Find the row and

COL

Of the min number.

??????????????? tmpmin = min (MIN (a)); ?????????????????????????????????????????????????????????

% Save The Min Number in Tmpmin.

????????????????????? TmProw = ROWCOUNT; ???????????????????????????????????????

% Save Min Number's Row In TmProw.

????????????????????? TMPCOL = colcount; ???????????????% save min Number's

COL

In tmpcol.

??????????????? a (rowcount,:) = INF; ????????????????????

% Change Whole Rows of the min number to infers.

?????????????? ??????? a (:, colcount) = inf; ?????? ??????????????

% Change Whole Cols of The Min Number TO INF.

??????????????? SUCC = 1; ??????????????????????? ?

% Flag To successful Find The min number.1 is true, 0 is false.

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

??????????? end;

? ?????? End ????% end for

??????? if SUCC == 1 ??% if successful to find the min number.do ...

??????????? breaf;

??????? end;

???

??? if SUCC == 1 ??????% Save the result to the matrix rst.

??????? RST (1, count) = tmpmin;

??????? RST (2, count) = tmprow;

??????? RST (3, count) = tmpcol;

???

END;

RST ????????????????% Display The Result.

?

The problem currently encountered is:

If the above program is written into a function, the matrix A is required to be in turn into a variable, calculate a few minimum values, the number of calculations is needed to control, ie: need to form a new function, incoming Matrix and iCount, However, incoming parameters cannot change during program execution? ? ? waiting for solution;

How to express the results into a graphic thing, after all, is a mathematical modeling. Of course, it is necessary to establish a model, giving a intuitive feeling is the best.

The program is optimized. This has to practice.

For Visio, it is still more fraud.

?

?

summary:

Although this mathematics modeling is not necessarily winning, I believe that we meet new friends in this process, consolidate the feelings between old friends;

Forced yourself to learn from the use of the new tools, in a sense, add the driving force of learning, hey, there are national awards waiting for you.

Enrich yourself and become a new starting point to find your own.

Advice: The revolution has not been successful, and comrades must work hard.

?

PS: The selection topic from this school is then passed.

转载请注明原文地址:https://www.9cbs.com/read-122639.html

New Post(0)