The second phase of modeling is the stage of model algorithmization and its machine implementation. This stage is a stage aimed at implementing ideas and mathematical schemes in the form of a machine model. M. System functioning process S..

System functioning process S. It can be considered as a sequential change of its states in the K-dimensional space. The task of modeling the functioning process of the system under study S. is the construction of functions z, Based on which it is possible to calculate the characteristics of the system of system functioning. For this, relationships that bind functions are necessary. z.with variables, parameters and time, as well as the initial conditions at the time of time t \u003d T. 0 .

There are two types of system states:

  • 1) Special inherent in the functioning of the system only at some points in time;
  • 2) non-singular in which the process is all the rest of the time. In this case, the status function z. i. (t) It may vary jump-like, and between special - smoothly.

Modeling algorithms can be built according to the "principle of special states". Denote by the hopping (relay) change of state z. as z, and the "principle of special states" - as principle Z.

« Principle z » It makes it possible for a number of systems to significantly reduce the cost of machine time to implement modeling algorithms. Mathematical modeling model statistical

A convenient form of representing the logical structure of models of the operation of systems and machine programs is a scheme. At various stages of modeling, the following schemes of modeling algorithms and programs are drawn up:

Generalized (enlarged) scheme simulating algorithm Specifies the overall procedure for modeling the system without any clarifying parts.

Detailed scheme simulating algorithm Contains clarifications that are absent in the generalized scheme.

Logic scheme simulating algorithm Represents the logical structure of the system of the process of operation of systems S..

Scheme program Displays the procedure for the program implementation of the simulator algorithm using a specific mathematical support. The program scheme is the interpretation of the logical scheme of the simulated algorithm by the developer of the program based on a specific algorithmic language.

Stages of model algorithm and its machine implementation:

  • 1. Building a logical pattern of the model.
  • 2. Obtaining mathematical ratio.
  • 3. Check the authenticity of the system model.
  • 4. Choosing instrumental tools for modeling.
  • 5. Drawing up a programming work plan.
  • 6. Specification and construction of the program scheme.
  • 7. Verification and verification of the reliability of the program scheme.
  • 8. Conduct programming model.
  • 9. Checking the reliability of the program.
  • 10. Drawing up technical documentation on the second stage.
Moscow Technological Institute
Computer modelling
Buzhinsky V.A. ktn.
assistant professor

Moscow
2014

Basic concepts of KM
The model is an artificially created object that reproduces in a certain
The actual object is the original.
Computer model - presentation of information about the simulated system
Computer tools.
The system is a set of interrelated elements with properties,
Different from the properties of individual items.
The element is an object that has properties, important for modeling purposes.
In a computer model, the properties of the element are represented by the values \u200b\u200bof the characteristics of the element.
The relationship between the elements is described by the values \u200b\u200band algorithms, in particular
computational formulas.

Currently, the computer model is most often understood:
Conditional image of an object or some system of objects (or processes),
Described using interrelated computer tables, flowcharts,
Charts, graphs, drawings, animated fragments, hypertexts, etc.
and displays the structure and interconnection between the elements of the object.
Computer models of this type we will be called structural functional;
a separate program, a set of programs, software package,
allowing the sequence of computing and graphic
Display their results to play (imitate) processes
Functioning of an object, systems of objects, subject to the impact on the object
Different (usually random) factors. Such models we will be below
Call simulation models.
Computer simulation - method of solving analysis problem or
Synthesis of a complex system based on the use of its computer model.
The essence of computer simulation is enclosed in obtaining quantitative and
Qualitative results according to the available model.

Topic # 1. Basic concepts of computer modeling.
Topic # 2. Construction of modeling algorithms: Formalization and
Algorithmization of processes.
Topic # 3. Universality of mathematical models.
Topic # 4. Mathematical models of complex systems.
Topic # 5. Continuous-deterministic, discretetermined, discrete-probabilistic and continuously transparent models.

Webinar number 2.
Building modeling algorithms:
Formalization and algorithmization of processes
1. Formalization of the model
2. Process algorithm

Throughout its history, humanity used various
Methods and tools for creating information models. These methods
constantly improved. So, the first information models
Created in the form of rock paintings. Currently information
models are usually built and are investigated using modern
Computer technologies.
When studying a new object, it is usually built
Descriptive information model using natural languages
and drawings. Such a model can display objects, processes and phenomena
Qualitatively, i.e. not using quantitative characteristics. For example,
Heliocentric model of the Copernicus in the natural language
Formulated as follows:
The earth rotates around the Sun, and the moon rotates around the Earth;
All planets rotate around the sun.

Using formal languages \u200b\u200bformal
Information models. Mathematics is the most wide
Used formal language. Using mathematical
Concepts and formulas are built by mathematical models.
In the natural sciences (physics, chemistry, etc.) are built
Formal models of phenomena and processes. Often for this applies
Universal mathematical language of algebraic formulas (KN. No. 3).
However, in some cases, specialized
Formal languages \u200b\u200b(in chemistry - language of chemical formulas, in music - music
gram and so on.) (?).

1. Uch. question. Formalization
Models
The process of building information models with
Formal languages \u200b\u200bare called formalization.
In the process of studying formal models is often produced
Their visualization. (?)
To visualize algorithms, flowcharts are used,
Spatial ratios between objects - drawings, models
Electrical chains - electrical circuits. With visualization formal
The models using animation may be displayed process dynamics,
Claiming graphs change values, etc.
Currently widespread
Computer interactive visual models. In such models, the researcher
can change the initial conditions and parameters of processes and observe
Changes in the behavior of the model.

The first stage of any research is the setting of the problem, which
Determined by a given goal.
The task is formulated in the usual language. By the nature of the production all
Tasks can be divided into two main groups. To the first group you can
attribute the tasks in which you want to explore how to change
The characteristics of the object at some exposure to it, "what will happen
if a?…". Second group of tasks: What is the impact on
The object so that its parameters satisfy some specified
Condition, "how to make? ..".
The second stage is an analysis of the object. The result of the analysis of the object is to identify it
components (elementary objects) and determining links between them.
The third stage is the development of an information model of the object. Building
Models must be associated with the purpose of modeling. Each object has
A large number of different properties. In the process of building a model
The main, most significant, properties that
correspond to goals
All what was mentioned above is formalization, i.e. replacement
A real object or process of its formal description, i.e. his
information model.

10.

Buing an information model, a person uses it instead
Original object to explore the properties of this object, forecasting
his behavior, etc. Before building some kind of complex structure,
For example, the bridge, designers make its drawings, carry out calculations
Strengths, permissible loads. Thus, instead of a real bridge
They deal with his model description in the form of drawings,
Mathematical formulas.
Formalization is a process
Selection and translation
internal structure of the object in
Certain information
Structure - shape.

11.

12.

According to the degree of formalization, information models are
Figy-iconic and iconic.
Signal models can be divided into the following groups:
Mathematical models represented by mathematical formulas,
Displays the connection of various parameters of the object, system or
process;
Special models presented in special languages \u200b\u200b(notes,
chemical formulas, etc.);
Algorithmic models representing a program in the form of a program,
recorded in a special language.

13.

Sequence of command control commands,
the execution of which leads to the achievement of a predetermined
Objectives called the control algorithm.
The origin of the concept of "algorithm".
The word "algorithm" comes on behalf of mathematics
Medieval East Mohammed Al-Khorezmi (787-850). They were
proposed receptions for performing arithmetic calculations with
multigalous numbers. Later in Europe, these techniques called
Algorithms, from Latin writing by Al-Khorezmi. Nowadays
The concept of the algorithm is not limited to arithmetic
calculations.

14.

Algorithm - understandable and accurate prescription
a certain sequence of actions
aimed at achieving this goal or
Solving the task.
Algorithm in relation to computing
Machine - accurate prescription, i.e., a set of operations and
The rules of their alternation, with which, starting
with some of the source data, you can solve any
The task of a fixed type.

15.

Properties of algorithms:
Discreteness - the algorithm must be broken down to steps (separate
completed actions).
Certainty - the performer should not arise
ambiguities in understanding the steps of the algorithm (the performer is not
Must make independent decisions).
Performance (limb) - the algorithm should lead to
The end result for the finite number of steps.
Cleaning - the algorithm must be understood for the artist.
Efficiency - from possible algorithms is chosen
algorithm that contains less steps or on its execution
required less time.

16.

Types of algorithm
Types of algorithms like logical and mathematics in
depending on the purpose, the initial conditions of the problem, ways to solve it,
The definitions of the actions of the Contractor are divided by the following
way:
Mechanical algorithms, otherwise deterministic;
Flexible algorithms, otherwise probabilistic and heuristic.
The mechanical algorithm sets certain actions,
denoting them in a single and reliable sequence,
providing thus unambiguous required or desired
Result if those process conditions or tasks are performed for
which developed an algorithm.
The heuristic algorithm is such an algorithm in which
The achievement of the final result of the action program is definitely not
predetermined, as well as the entire sequence is not indicated
Artist's actions. In these algorithms are used
Universal logical procedures and decision makers,
Based on the analogies, associations and the experience of solving similar
Tasks.

17.

In the process of algorithmization, the original algorithm is divided into separate
Related parts, called steps, or private algorithms.
The four main types of private algorithms are distinguished:
linear algorithm;
algorithm with branching;
cyclic algorithm;
auxiliary, or subordinate, algorithm.
Linear algorithm - a set of instructions performed
sequentially in time for each other.
Algorithm with branching - algorithm containing at least one
the condition, as a result of the inspection of which the computer ensures the transition to
One of the two possible steps.
Cyclic algorithm - algorithm providing for repetition
The same action on new source data. Necessary
see that the cyclic algorithm is easily implemented by two
previously reviewed types of algorithms.
Auxiliary, or subordinate, algorithm - algorithm, earlier
Designed and entirely used in algorithmization of a specific
tasks.

18.

At all stages of preparation for the task algorithm, is widely used
Structural representation of the algorithm in the form of flowcharts.
Block diagram - graphic image of the algorithm in the form of a scheme
interconnected by arrow (transition lines) of graphic symbols, each of which corresponds to one step
Algorithm. Inside the block, a description of the actions performed in it is given.

19.

Methods for describing algorithm
Selection of funds and methods for recording algorithm
Depends primarily from the appointment (nature) itself
algorithm, as well as from who (what) will
Artist Algorithm.
Algorithms are written in the form:
verbal rules
flowcharts
programs.

20.

The verbal way of describing algorithms is essentially the usual language, but
With careful selection of words and phrases that do not allow extra words,
ambiguities and repetitions. Complements the language of ordinary mathematical
symbols and some special agreements.
The algorithm is described as a sequence of steps. At every step
The composition of the actions performed and the direction of further
computing. In this case, if the current step does not specify which step should
Follow the next one, then the transition to the next step is carried out.
Example. Make an algorithm for finding the highest number of three specified
Numbers a, b, c.
Compare a and b. If a\u003e b, then as a maximum T adopt a, otherwise (a<=b) в
As a maximum of accepting b.
Compare T and C. If T\u003e C, then go to step 3. Otherwise (t Maximum C (T \u003d C).
Take T as a result.
Disadvantages of the verbal way of describing algorithms:
lack of visibility
Insufficient accuracy.

21.

Graphic description of the description
Algorithms is a way
Representations of the algorithm S.
Use of generally accepted
Graphic figures each of
which describes one or
Several steps of the algorithm.
Inside the block is written
Description of commands or conditions.
For instructions
Sequence of execution
blocks use lines
(connection lines).
There are certain
Rules for describing algorithms in
The form of flowcharts. (?)

22.

Description of algorithms using programs - algorithm recorded on
Programming language is called a program.
The verbal and graphical form of the recording of the algorithm are designed for
man. Algorithm designed for execution on the computer,
It is written in programming language (language, understandable computer). Now
There are several hundred programming languages. The most popular:
Si, Pascal, Baisik, etc.
Example. Make the algorithm for finding the highest number of three
set numbers a, b, c.
PROGRAM MAXFROMTHREE;
var.
A, B, C, RESULT: REAL;
Begin.
Write ("Enter A, B, C");
READLN (A, B, C);
IF A\u003e B THEN RESULT: \u003d A ELSE RESULT: \u003d B;
IF C\u003e Result Then Result: \u003d C;
Writeln ("Maximum of three numbers is:", Result: 9: 2)
end.
(?)

23.

Example 1.
Dan a one-dimensional array, calculate the arithmetic average. (?)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
The solution of the problem
Program Test;
Var i, Summ: Integer;
Massiv: Array of Integer;
Begin.
Summ: \u003d 0;
For i: \u003d 1 to 5 Do
Begin.
Write ("Enter an array element:");
READLN (Massiv [i]);
Summ: \u003d Summ + Massiv [i];
end;
Write ("The arithmetic array is equal to:", SUMM / 5);
Writeln;
End.
(?)

24.

Example 2.
Build an algorithm for the body challenge process at an angle to the horizon
(?)

25.

V.V. Vasilyev, L.A. Simak, A.M. Rybnikova. Mathematical I.
Computer modeling of processes and systems in the medium
MATLAB / SIMULINK. Tutorial for students and graduate students. 2008.
year. 91 p.
Computer modeling of physical problems in
Microsoft Visual Basic. Tutorial Author: Alekseev D.V.
Solon press, 2009
Author: Orlova I.V., Polovnikov V.A.
Publisher: university textbook
Year: 2008.

26.

Avfilatov, V.S. System analysis in management [Text]: studies. Visobi / V.S.
Avfilatov, A. A. Emelyanov, A. A. Kukushkin; Ed. A. A. Emelyanova. - M.:
Finance and statistics, 2002. - 368 p.
Venikov, V.A. Theory of similarity and modeling [Text] / V. A. Venikov, G.V.
Venikov.- M.: Higher. Sk., 1984. - 439 p.
Evysyukov, V.N. Analysis of automatic systems [Text]: Educational and Methodical
Manual for performing practical tasks / V. N. Evsyukov, A. M. Cherniusov. -
2nd ed., Sp. - Orenburg: IPK GOU OGU, 2007. - 179 p.
Zarubin, V.S. Mathematical modeling in the technique [Text]: studies. For universities /
Ed. V. S. Zarubina, A. P. Krischenko. - M.: Publishing House MSTU NAM.N.E. Bauman, 2001. -
496 p.
Wheels, Yu. B. System modeling. Dynamic and hybrid systems [Text]:
Uch. Manual / Yu.B. Wheels, Yu.B. Senichenkov. - St. Petersburg. : BHV-Petersburg, 2006. - 224 p.
Wheels, Yu.B. Simulation of systems. Object-oriented approach [Text]:
Uch. Manual / Yu.B. Wheels, Yu.B. Senichenkov. - St. Petersburg. : BHV-Petersburg, 2006. - 192 p.
Nainankov, I. P. Basics of automated design [Text]: studies.
universities / I. P. Nainankov. - M.: Publishing House MSTU. N.E. Bauman, 2000. - 360 p.
Skurichin, V.I. Mathematical modeling [Text] / V. I. Skurichin, V. V.
Shifrin, V. V. Dubrovsky. - K.: Technique, 1983. - 270 s.
Chernousov, A. M. Software Automated Systems
Design and management: Tutorial [Text] / A. M. Cherniusova, V.
N. Sherstobitova. - Orenburg: OGU, 2006. - 301 p.

At the second stage of modeling - the stage of algorithmization of the model and its machine implementation, the mathematical model formed in the first stage is embodied in a specific machine model. This stage is a stage of practical activity aimed at implementing ideas and mathematical schemes in the form of a machine model of the process of functioning S. Before considering the elements of algorithmization and machine implementation of the model, we will discuss the basic principles of building modeling algorithms and the forms of their presentation.

Principles of constructing modeling algorithms.

The process of functioning system S can be considered as a sequential change of its states in-dimensional space. It is obvious that the task of simulating the compounding process of the system S system is to build functions based on which it is possible to calculate the characteristics of the system of functioning of the system. To do this, there should be a relationship that bind functions with variables, parameters and time, as well as the initial conditions at the time of time.

Consider the process of functioning of some deterministic system in which there are no random factors, i.e. the status vector of such a system can be determined from (2.3) as. Then the state of the process at the time of time

it can be uniquely determined from the ratios of the mathematical model according to the well-known initial conditions. This allows you to build a modeling system of the system of the system. To do this, we transform the ratio of the model to this species to make a convenient calculation by the values \u200b\u200bwhere we organize the system time counter, which in the initial moment shows the time. To do this moment, we add the time interval Then the counter will show the values \u200b\u200bto be calculated then by turning to the time if the step is small enough, then this way you can get approximate values

Consider the process of functioning the stochastic system that is, the systems that are affected by random factors, i.e., the status vector is determined by relation (2.3). For such a system, the function of the process states at the time of time the ratio of the model is determined only by the distribution of probabilities for at the time of time. In general, the initial conditions may be random specified by the corresponding probability distribution. At the same time, the structure of the modeling algorithm for stochastic systems is mainly the same. Only instead of the state now it is necessary to calculate the distribution of probabilities for possible states. Let the system time counter shows the time. In accordance with the specified probability distribution, it is chosen further, based on the distribution, the state is obtained until one of the possible implementations of the random multidimensional process will be built at a specified time interval.

The considered principle of constructing modeling algorithms is called the principle of the most universal principle, which allows to determine the consistent states of the process of operation of the system S at a given time intervals, but from the point of view of machine time costs it is sometimes not economical.

When considering the operation of some systems, some systems can be found that two types of states are characterized: 1) Special inherent in the functioning of the system only at some time of time (moments of entering input or control effects, perturbations of the external environment, etc. Non-singular in which the process is All the rest of the time. Special conditions are also characteristic of the fact that the function of the states in these moments of time are changed by a jump, and between special states, the change in coordinate occurs smoothly and continuously or does not occur at all. Thus, by simulating the system model, only its special

states in those moments of time when these states occur, you can obtain the information necessary to build functions. Obviously, modeling algorithms on the "principle of special states" can be constructed for the described type of systems. Denote by the hopping (relay) change of state as a "principle of special states" - as a principle

For example, for a mass service system (-sham), states can be selected as a special states in the moments of receipt of applications for service in the device P and at the time of the end of servicing applications by channels to when the state of the system, estimated by the number of applications in it, changes the jump.

Note that the characteristics of the functioning process of such systems with special states are evaluated according to information about special states, and non-singular states during modeling are not considered. "The principle makes it possible for radical systems to significantly reduce the cost of machine time for the implementation of modeling algorithms compared with the" principle of the logic of constructing a modeling algorithm that implements "the principle differs from the considered for the" principle only in what includes the procedure for determining the time of the time corresponding to the following special state S. Systems S. To study the process of functioning of large systems rationally, the use of a combined principle of constructing modeling algorithms that combines the benefits of each of the considered principles.

Forms of representation of modeling algorithms.

A convenient form of representing the logical structure of models of the operation of systems and machine programs is a scheme. At various stages of modeling, generalized and detailed logic schemes of modeling algorithms are compiled, as well as program schemes.

The generalized (enlarged) scheme of the simulator algorithm sets the overall procedure for modeling the system without any refineering parts. The generalized scheme indicates that it is necessary to perform at the next modeling step, for example, to refer to the random number sensor.

A detailed scheme of the simulator algorithm contains clarifications that are absent in the generalized scheme. A detailed diagram shows not only what should be performed at the next step modeling system, but also how to execute it.

The logic diagram of the simulator algorithm is the logical structure of the model of the system of the system S. The logic circuit indicates the time-ordered sequence of logical operations associated with the solution of the modeling problem.

The program scheme displays the order of the program implementation of the simulator algorithm using a specific mathematical support. The program scheme is the interpretation of the logical scheme of the simulated algorithm by the developer of the program based on a specific algorithmic language. The difference between these schemes is that the logic circuit reflects the logical structure of the model of the system of the system, and the program scheme is the logic of the machine implementing the model using specific software and technical modeling.

The logical scheme of the algorithm and the program scheme can be made both in the enlarged and in detailed form. To draw these schemes, a set of characters defined by GOST 19,701 - 90 (ISO 5807 - 85) "Unified System Documentation System is used.

Schemes of algorithms, programs, data and systems.

Conditional designations and rules of execution. " Some most commonly used in the practice of modeling on computer symbols are shown in Fig. 3.3, where the main, specific and special symbols of the process are depicted. These include: Main Symbol: A - Process - The symbol displays the data processing function of any kind (executing a specific operation or group of operations, leading to a change in value, form or placement of information or to the definition by which from several flow directions should be moved); Specific Process Symbols: B - Solution - The symbol displays a solution or a switch function that has one input and a number of alternative outputs, one and only one of which can be activated after calculating the conditions defined within this symbol (the corresponding calculation results can be recorded next door with lines displaying these paths); B - Preparation - The symbol displays the command modification or group of commands to influence some subsequent function (setting the switch, modify the index register or program initialization); r - predefined process - the symbol displays a predefined process consisting of one or more operations or steps of a program that are defined elsewhere (in the subroutine, module); D - manual operation - the symbol displays any process performed by a person; Special Symbols: E - Connector - The symbol displays the output into part of the circuit and input from another part of this circuit and is used to break the line and continueing it elsewalk (the corresponding symbols connectors must contain the same unique designation); F Terminator - The symbol displays output to an external environment and input from the external environment (beginning or end of the algorithm schema, external use or data assignment).

Fig. 3.3. Symbols and schemes of modeling algorithms

An example of the image of the modeling algorithm scheme is shown in Fig. 3.3, s.

Usually the scheme is the most convenient form of representing the structure of modeling algorithms. In some cases, other forms of representing modeling algorithms are used, for example, the shape of the graph schemes (Fig. 3.3, and). Here - the beginning, - the end, - the calculation, - the formation, - the verification of the condition - the meter, - the issuance of the result, where is the total number of operators modeling algorithm. As an explanation to the graph scheme of the algorithm, the text is disclosed in the text of the operator's content, which makes it possible to simplify the representation of the algorithm, but complicates its work with it.

Modeling algorithms can also be presented as operator schemes. Operator designations on such a scheme correspond to the designations for graph schemes. For the considered example, the algorithm operator scheme has a view

In more detail with the form of representing the logical structure of modeling algorithms and machine programs, we will get acquainted when considering imitation models of the functioning of various systems and methods for their implementation on a computer.

Subjects of the second stage of modeling.

Consider the submets performed during the algorithmization of the system model and its machine implementation, the focus on the tasks of each sub-step and the methods of their solution.

2.1. Building a logical model pattern. It is recommended to build a model on a block principle, i.e. in the form of a certain set of standard blocks. Building model S systems from such

the blocks ensures the necessary flexibility in the process of its operation, especially at the stage of machine debugging. When building a block model, the process of functioning the system into separate autonomous subprocesses is carried out. Thus, the model is functionally divided into subdiments, each of which, in turn, can be divided into even smaller elements. Blocks of such a model are two types: basic and auxiliary. Each main unit corresponds to a certain real subprocess, which has a place in the simulated system S, and the auxiliary blocks are only an integral part of the machine model, they do not reflect the functions of the simulated system and are necessary only for machine implementation, fixation and processing of modeling results.

2.2. Obtaining mathematical ratios. Simultaneously with the implementation of the sub-stage of constructing a logic model of the model, it is necessary to obtain, if possible, mathematical ratios in the form of explicit functions, i.e. to build analytical models. This sub-step corresponds to an implicit task of possible mathematical relations at the stage of constructing a conceptual model. When performing the first stage, there can still be information on the specific form of such mathematical relations, and in the second stage it is already necessary to obtain these relations. The scheme of the machine model must be a complete reflection of the concept laid in the model and have: a) a description of all blocks of the model with their names; b) a unified system of symbols and numbering of blocks; c) reflection of the logic of the model of the system functioning; d) The task of mathematical relations explicitly.

Thus, in the general case, a constructed machine model of the system will have a combined character, i.e., reflect an analytical imitation approach, when part of the process in the system is described analytically, and the other part is mimicted by the corresponding algorithms.

2.3. Check the authenticity of the system model. This check is the first of the checks performed at the model implementation phase. Since the model is an approximate description of the process of functioning of the real system S, then until the model reliability is not proved, it cannot be argued that it will be obtained that they will be obtained that coincide with those that could be obtained when conducting a real-life experiment with a real system S. Therefore, the determination of the model of the model can be considered the most important problem when modeling systems. The degree of confidence in the results obtained by modeling method depends on the solution. Verification of the model on the under consideration should provide an answer to the question of how the logical scheme of the system model and the mathematical relations used reflect the idea of \u200b\u200bthe model formed at the first stage. At the same time checked: a) the possibility

solutions to the task; b) the accuracy of reflection of the plan in a logical scheme; c) fullness of the logic model scheme; d) the correctness of the mathematical ratios used.

Only after the developer is convinced by appropriate verification in the correctness of all these provisions, we can assume that there is a logical scheme of the system of system 5, suitable for further work on the implementation of the model on a computer.

2.4. Selection of tools for modeling. On this sub-step, it is necessary to finally resolve the question of which computing machine (computer, AVM, GVK) and which software is advisable to use to implement the System S. System model in general, the choice of computing tools can be carried out on previous sub-payments, but the sub-step in question is the last When this choice should be made finally, since otherwise it will be difficult to carry out further work on the implementation of the model. The issue of choosing a computer is reduced to ensuring the following requirements:

a) the presence of the necessary software and technical means; b) availability of the selected computer for the model developer; c) providing all stages of model implementation; d) the possibility of timely receipt of results.

2.5. Drawing up a programming work plan. Such a plan should help in programming the model, given the assessment of the scope of the program and labor costs to its preparation. The plan when using a universal computer should include: a) Selecting a language (Systems) of model programming; b) specifying the type of computer and necessary for modeling devices; c) an estimate of the approximate volume of the necessary operational and external memory; d) the approximate costs of machine time on modeling; e) the estimated time spent on programming and debugging a computer program.

2.6. Specification and construction of the program scheme. Program Specification - Formalized presentation of the requirements for the program to be satisfied when developing it, as well as a description of the problem, conditions and effects of action without specifying the method of its achievement. The presence of a logical block diagram of the model allows you to build a program scheme, which should reflect: a) splitting the model to blocks, subblocks, etc.;

b) features of model programming; c) carrying out the necessary changes; d) program testing capabilities; e) assessment of machine time costs; e) form of submission of input and output.

Construction of the program scheme is one of the main tasks at the machine implementing the model. At the same time, special attention should be paid to the peculiarities of the language selected for the implementation of the model: the algorithmic language of the general

assignment or modeling language (for example, Simula, Simscript, GPSS).

2.7. Verification and verification of the reliability of the program scheme. Verification of the program is proof that the behavior of the program complies with the specification for the program. This check is the second at the machine implementation of the system model. Obviously, it makes no sense to continue the work on the implementation of the model, if there is no confidence that in the program scheme, on which further programming will be carried out, errors that make its inadequate logic diagram of the model, and therefore the inadequate model of modeling itself are allowed. At the same time, the conformity of each operation presented in the program scheme similar to the operation in the logical diagram of the model is carried out.

2.8. Conduct programming model. With a sufficiently detailed scheme of the program, which reflects all operations of the logic model of the model, you can proceed to programming the model. If there is an adequate program diagram, the programming is only for a programmer without participation and help from the model developer. When using packages of modeling application programs, direct generation of working programs are carried out for modeling a specific object, i.e. the model programming is implemented in an automated mode.

2.9. Check the reliability of the program. This last check at the machine implementation phase of the model, which must be carried out by: a) reverse transfer of the program to the original scheme; b) checking individual parts of the program when solving various test tasks; c) combining all parts of the program and checking it in general on the control example of simulation of the version of S.

On this sub-step, it is also necessary to check the assessments of the cost of machine time for modeling. It is also useful to obtain a fairly simple analytical approximation of the dependence of the cost of machine-time from the number of implementations, which will allow the developer of the model (Customer) to correctly formulate the requirements for the accuracy and reliability of modeling results.

2.10. Drawing up technical documentation for the second stage. To complete the stage of the machine implementing the model, it is necessary to compile a technical documentation containing: a) the logical scheme of the model and its description; b) adequate program scheme and adopted designations; c) full program text; d) a list of input and output values \u200b\u200bwith explanations; e) instructions for working with the program; (e) Evaluation of machine time costs for modeling with the required computer resources.

Thus, at this stage, the scheme of the model S system is being developed, its algorithm and programming is carried out.

using specific software and hardware, i.e., a machine model is built with which it is necessary to work to obtain the necessary results of modeling according to the evaluation of the characteristics of the functioning of the system S (problem of analysis) or to search for optimal structures, algorithms and system parameters S (synthesis problem ).