Debian Codegraph @

doc/source/main/optimisation_concepts.rst

raw
1 Optimisation Concepts
2 =====================
3
4 Linear Programing
5 -----------------
6 The simplest type of mathematical program is a linear program. For your
7 mathematical program to be a linear program you need the following
8 conditions to be true:
9
10 * The decision variables must be real variables;
11 * The objective must be a linear expression;
12 * The constraints must be linear expressions.
13
14 Linear expressions are any expression of the form
15
16 .. math::
17
18 a_1 x_1 + a_2 x_2 + a_3 x_3 + ... a_n x_n \{<= , =, >=\} b
19
20 where the :math:`a_i` and :math:`b` are known constants and :math:`x_i` are variables. The process
21 of solving a linear program is called linear programing. Linear programing
22 is done via the Revised Simplex Method (also known as the Primal Simplex Method),
23 the Dual Simplex Method or an Interior Point Method. Some solvers like cplex
24 allow you to specify which method you use, but we won’t go into further detail
25 here.
26
27 Integer Programing
28 ------------------
29
30 Integer programs are almost identical to linear programs with one very
31 important exception. Some of the decision variables in integer programs may
32 need to have only integer values. The variables are known as integer variables.
33 Since most integer programs contain a mix of continuous variables and integer
34 variables they are often known as mixed integer programs. While the change
35 from linear programing is a minor one, the effect on the solution process is
36 enormous. Integer programs can be very difficult problems to solve and there
37 is a lot of current research finding “good” ways to solve integer programs.
38 Integer programs can be solved using the branch-and-bound process.
39
40 Note For MIPs of any reasonable size the solution time grows
41 exponentially as the number of integer variables increases.
42