Debian Codegraph @

doc/source/main/the_optimisation_process.rst

raw
1 The Optimisation Process
2 ========================
3
4 Solving an optimisation problem is not a linear process, but the process can be
5 broken down into five general steps:
6
7 + Getting the problem description
8 + Formulating the mathematical program
9 + Solving the mathematical program
10 + Performing some post-optimal analysis
11 + Presenting the solution and analysis
12
13 However, there are often "feedback loops" within this process. For example,
14 after formulating and solving an optimisation problem, you will often want to
15 consider the validity of your solution (often consulting with the person who
16 provided the problem description). If your solution is invalid you may need to
17 alter or update your formulation to incorporate your new understanding of the
18 actual problem. This process is shown in the Operations Research Methodology
19 Diagram.
20
21 .. image:: images/or_methodology.jpg
22
23 The modeling process starts with a well-defined model description, then uses
24 mathematics to formulate a mathematical program. Next, the modeler enters the
25 mathematical program into some solver software, e.g., Excel and solves the
26 model. Finally, the solution is translated into a decision in terms of the
27 original model description.
28
29 Using Python gives you a "shortcut" through the modeling process. By formulating
30 the mathematical program in Python you have already put it into a form that
31 can be used easily by PuLP the modeller to call many solvers, e.g. CPLEX, COIN,
32 gurobi so you don't need to enter the mathematical program into the solver
33 software. However, you usually don't put any "hard" numbers into your
34 formulation, instead you "populate" your model using data files, so there is
35 some work involved in creating the appropriate data file. The advantage of using
36 data files is that the same model may used many times with different data sets.
37
38 The Modeling Process
39 --------------------
40
41 The modeling process is a "neat and tidy" simplification of the optimisation
42 process. Let's consider the five steps of the optimisation process in more
43 detail:
44
45 Getting the Problem Description
46 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47
48 The aim of this step is to come up with a formal, rigourous model description.
49 Usually you start an optimisation project with an abstract description of a
50 problem and some data. Often you need to spend some time talking with the
51 person providing the problem (usually known as the client). By talking with the
52 client and considering the data available you can come up with the more
53 rigourous model description you are used to. Sometimes not all the data will be
54 relevant or you will need to ask the client if they can provide some other
55 data. Sometimes the limitations of the available data may change your model
56 description and subsequent formulation significantly.
57
58 Formulating the mathematical program
59 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60 In this step we identify the key quantifiable decisions, restrictions and goals
61 from the problem description, and capture their interdependencies in a
62 mathematical model. We can break the formulation process into 4 key steps:
63
64 * Identify the Decision Variables paying particular attention to units (for example: we need to decide how many hours per week each process will run for).
65 * Formulate the Objective Function using the decision variables, we can construct a minimise or maximise objective function. The objective function typically reflects the total cost, or total profit, for a given value of the decision variables.
66 * Formulate the Constraints, either logical (for example, we cannot work for a negative number of hours), or explicit to the problem description. Again, the constraints are expressed in terms of the decision variables.
67 * Identify the Data needed for the objective function and constraints. To solve your mathematical program you will need to have some "hard numbers" as variable bounds and/or variable coefficients in your objective function and/or constraints.
68
69 Solving the mathematical program
70 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 For relatively simple or well understood problems the mathematical model can
72 often be solved to optimality (i.e., the best possible solution is identified).
73 This is done using algorithms such as the Revised Simplex Method
74 or Interior Point Methods. However, many
75 industrial problems would take too long to solve to optimality using these
76 techniques, and so are solved using heuristic methods which do not guarantee optimality.
77
78 Performing some post-optimal analysis
79 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80 Often there is uncertainty in the problem description (either with the accuracy
81 of the data provided, or with the value(s) of data in the future). In this
82 situation the robustness of our solution can be examined by performing
83 post-optimal analysis. This involves identifying how the optimal solution would
84 change under various changes to the formulation (for example, what would be the
85 effect of a given cost increasing, or a particular machine failing?). This sort
86 of analysis can also be useful for making tactical or strategic decisions (for
87 example, if we invested in opening another factory, what effect would this have on our revenue?).
88
89 Another important consideration in this step (and the next) is the validation of
90 the mathematical program's solution. You should carefully consider what the
91 solution's variable values mean in terms of the original problem description.
92 Make sure they make sense to you and, more importantly, your client (which is
93 why the next step, presenting the solution and analysis is important).
94
95 Presenting the solution and analysis
96 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
97 A crucial step in the optimisation process is the presentation of the solution
98 and any post-optimal analysis. The translation from a mathematical program's
99 solution back into a concise and comprehensible summary is as important as the
100 translation from the problem description into the mathematical program. Key
101 observations and decisions generated via optimisation must be presented in an
102 easily understandable way for the client or project stakeholders.
103
104 Your presentation is a crucial first step in the implementation of the decisions
105 generated by your mathematical program. If the decisions and their consequences
106 (often determined by the mathematical program constraints) are not presented
107 clearly and intelligently your optimal decision will never be used.
108
109 This step is also your chance to suggest other work in the future. This could include:
110
111 * Periodic monitoring of the validity of your mathematical program;
112 * Further analysis of your solution, looking for other benefits for your client;
113 * Identification of future optimisation opportunities.