Sponsored Links
-->

Monday, April 30, 2018

Integer programming - YouTube
src: i.ytimg.com

An integer programming problem is a mathematical optimization or feasibility program in which some or all of the variables are restricted to be integers. In many settings the term refers to integer linear programming (ILP), in which the objective function and the constraints (other than the integer constraints) are linear.

Integer programming is NP-complete. In particular, the special case of 0-1 integer linear programming, in which unknowns are binary, and only the restrictions must be satisfied, is one of Karp's 21 NP-complete problems.

If some decision variables are not discrete the problem is known as a mixed-integer programming.


Video Integer programming



Canonical and standard form for ILPs

An integer linear program in canonical form is expressed as:

maximize c T x subject to A x <= b , x >= 0 , and x ? Z n , {\displaystyle {\begin{aligned}&{\text{maximize}}&&\mathbf {c} ^{\mathrm {T} }\mathbf {x} \\&{\text{subject to}}&&A\mathbf {x} \leq \mathbf {b} ,\\&&&\mathbf {x} \geq \mathbf {0} ,\\&{\text{and}}&&\mathbf {x} \in \mathbb {Z} ^{n},\end{aligned}}}

and an ILP in standard form is expressed as

maximize c T x subject to A x + s = b , s >= 0 , x >= 0 , and x ? Z n , {\displaystyle {\begin{aligned}&{\text{maximize}}&&\mathbf {c} ^{\mathrm {T} }\mathbf {x} \\&{\text{subject to}}&&A\mathbf {x} +\mathbf {s} =\mathbf {b} ,\\&&&\mathbf {s} \geq \mathbf {0} ,\\&&&\mathbf {x} \geq \mathbf {0} ,\\&{\text{and}}&&\mathbf {x} \in \mathbb {Z} ^{n},\end{aligned}}}

where c , b {\displaystyle \mathbf {c} ,\mathbf {b} } are vectors and A {\displaystyle A} is a matrix, where all entries are integers. As with linear programs, ILPs not in standard form can be converted to standard form by eliminating inequalities, introducing slack variables ( s {\displaystyle \mathbf {s} } ) and replacing variables that are not sign-constrained with the difference of two sign-constrained variables


Maps Integer programming



Example

The graph on the right shows the following problem.

max   y - x + y <= 1 3 x + 2 y <= 12 2 x + 3 y <= 12 x , y >= 0 x , y ? Z {\displaystyle {\begin{aligned}\max &{\text{ }}y\\-x+y&\leq 1\\3x+2y&\leq 12\\2x+3y&\leq 12\\x,y&\geq 0\\x,y&\in \mathbb {Z} \end{aligned}}}

The feasible integer points are shown in red, and the red dashed lines indicate their convex hull, which is the smallest polyhedron that contains all of these points. The blue lines together with the coordinate axes define the polyhedron of the LP relaxation, which is given by the inequalities without the integrality constraint. The goal of the optimization is to move the black dotted line as far upward while still touching the polyhedron. The optimal solutions of the integer problem are the points ( 1 , 2 ) {\displaystyle (1,2)} and ( 2 , 2 ) {\displaystyle (2,2)} which both have an objective value of 2. The unique optimum of the relaxation is ( 1.8 , 2.8 ) {\displaystyle (1.8,2.8)} with objective value of 2.8. Note that if the solution of the relaxation is rounded to the nearest integers, it is not feasible for the ILP.


Course: Operations Research (open course), Topic: Mixed Integer ...
src: caseine.org


Proof of NP-hardness

The following is a reduction from minimum vertex cover to integer programming that will serve as the proof of NP-hardness.

Let G = ( V , E ) {\displaystyle G=(V,E)} be an undirected graph. Define a linear program as follows:

min ? v ? V y v y v + y u >= 1 ? u v ? E y v >= 0 ? v ? V y v ? Z ? v ? V {\displaystyle {\begin{aligned}\min \sum _{v\in V}y_{v}\\y_{v}+y_{u}&\geq 1&&\forall uv\in E\\y_{v}&\geq 0&&\forall v\in V\\y_{v}&\in \mathbb {Z} &&\forall v\in V\end{aligned}}}

Given that the constraints limit y v {\displaystyle y_{v}} to either 0 or 1, any feasible solution to the integer program is a subset of vertices. The first constraint implies that at least one end point of every edge is included in this subset. Therefore, the solution describes a vertex cover. Additionally given some vertex cover C, y v {\displaystyle y_{v}} can be set to 1 for any v ? C {\displaystyle v\in C} and to 0 for any v ? C {\displaystyle v\not \in C} thus giving us a feasible solution to the integer program. Thus we can conclude that if we minimize the sum of y v {\displaystyle y_{v}} we have also found the minimum vertex cover.


Mixed Integer Linear Programming (MILP) Tutorial - YouTube
src: i.ytimg.com


Variants

Mixed integer linear programming (MILP) involves problems in which only some of the variables, x i {\displaystyle x_{i}} , are constrained to be integers, while other variables are allowed to be non-integers.

Zero-one linear programming involves problems in which the variables are restricted to be either 0 or 1. Note that any bounded integer variable can be expressed as a combination of binary variables. For example, given an integer variable, 0 <= x <= U {\displaystyle 0\leq x\leq U} , the variable can be expressed using ? log 2 U ? + 1 {\displaystyle \lfloor \log _{2}U\rfloor +1} binary variables:

x = x 1 + 2 x 2 + 4 x 3 + ? + 2 ? log 2 U ? x ? log 2 U ? + 1 . {\displaystyle x=x_{1}+2x_{2}+4x_{3}+\cdots +2^{\lfloor \log _{2}U\rfloor }x_{\lfloor \log _{2}U\rfloor +1}.}

Conceptual Business Illustration Words Integer Programming Stock ...
src: thumb1.shutterstock.com


Applications

There are two main reasons for using integer variables when modeling problems as a linear program:

  1. The integer variables represent quantities that can only be integer. For example, it is not possible to build 3.7 cars.
  2. The integer variables represent decisions and so should only take on the value 0 or 1 .

These considerations occur frequently in practice and so integer linear programming can be used in many applications areas, some of which are briefly described below.

Production planning

Mixed integer programming has many applications in industrial production, including job-shop modelling. One important example happens In agricultural production planning involves determining production yield for several crops that can share resources (e.g. Land, labor, capital, seeds, fertilizer, etc.). A possible objective is to maximize the total production, without exceeding the available resources. In some cases, this can be expressed in terms of a linear program, but variables must be constrained to be integer.

Scheduling

These problems involve service and vehicle scheduling in transportation networks. For example, a problem may involve assigning buses or subways to individual routes so that a timetable can be met, and also to equip them with drivers. Here binary decision variables indicate whether a bus or subway is assigned to a route and whether a driver is assigned to a particular train or subway.

Telecommunications networks

The goal of these problems is to design a network of lines to install so that a predefined set of communication requirements are met and the total cost of the network is minimal. This requires optimizing both the topology of the network along with the setting the capacities of the various lines. In many cases, the capacities are constrained to be integer quantities. Usually there are, depending on the technology used, additional restrictions that can be modeled as linear inequalities with integer or binary variables.

Cellular networks

The task of frequency planning in GSM mobile networks involves distributing available frequencies across the antennas so that users can be served and interference is minimized between the antennas. This problem can be formulated as an integer linear program in which binary variables indicate whether a frequency is assigned to an antenna.


Linear Programming 3: Graphical Solution â€
src: i.ytimg.com


Algorithms

The naive way to solve an ILP is to simply remove the constraint that x is integer, solve the corresponding LP (called the LP relaxation of the ILP), and then round the entries of the solution to the LP relaxation. But, not only may this solution not be optimal, it may not even be feasible; that is, it may violate some constraint.

Using total unimodularity

While in general the solution to LP relaxation will not be guaranteed to be integral, if the ILP has the form max c T x {\displaystyle \max \mathbf {c} ^{\mathrm {T} }\mathbf {x} } such that A x = b {\displaystyle A\mathbf {x} =\mathbf {b} } where A , b , {\displaystyle A,\mathbf {b} ,} and c {\displaystyle \mathbf {c} } have all integer entries and A {\displaystyle A} is totally unimodular, then every basic feasible solution is integral. Consequently, the solution returned by the simplex algorithm is guaranteed to be integral. To show that every basic feasible solution is integral, let x {\displaystyle \mathbf {x} } be an arbitrary basic feasible solution . Since x {\displaystyle \mathbf {x} } is feasible, we know that A x = b {\displaystyle A\mathbf {x} =\mathbf {b} } . Let x 0 = [ x n 1 , x n 2 , ? , x n j ] {\displaystyle \mathbf {x} _{0}=[x_{n_{1}},x_{n_{2}},\cdots ,x_{n_{j}}]} be the elements corresponding to the basis columns for the basic solution x {\displaystyle \mathbf {x} } . By definition of a basis, there is some square submatrix B {\displaystyle B} of A {\displaystyle A} with linearly independent columns such that B x 0 = b {\displaystyle B\mathbf {x} _{0}=\mathbf {b} } .

Since the columns of B {\displaystyle B} are linearly independent and B {\displaystyle B} is square, B {\displaystyle B} is nonsingular, and therefore by assumption, B {\displaystyle B} is unimodular and so det ( B ) = ± 1 {\displaystyle \det(B)=\pm 1} . Also, since B {\displaystyle B} is nonsingular, it is invertible and therefore x 0 = B - 1 b {\displaystyle \mathbf {x} _{0}=B^{-1}\mathbf {b} } . By definition, B - 1 = B a d j det ( B ) = ± B a d j {\displaystyle B^{-1}={\frac {B^{adj}}{\det(B)}}=\pm B^{adj}} . Note that B a d j {\displaystyle B^{adj}} denotes the adjugate of B {\displaystyle B} and is integral because B {\displaystyle B} is integral. Therefore,

=> B - 1 = ± B a d j  is integral. => x 0 = B - 1 b  is integral. => Every basic feasible solution is integral. {\displaystyle {\begin{aligned}&\Rightarrow B^{-1}=\pm B^{adj}{\text{ is integral.}}\\&\Rightarrow x_{0}=B^{-1}b{\text{ is integral.}}\\&\Rightarrow {\text{Every basic feasible solution is integral.}}\end{aligned}}}

Thus, if the matrix A {\displaystyle A} of an ILP is totally unimodular, rather than use an ILP algorithm, the simplex method can be used to solve the LP relaxation and the solution will be integer.

Exact algorithms

When the matrix A {\displaystyle A} is not totally unimodular, there are a variety of algorithms that can be used to solve integer linear programs exactly. One class of algorithms are cutting plane methods which work by solving the LP relaxation and then adding linear constraints that drive the solution towards being integer without excluding any integer feasible points.

Another class of algorithms are variants of the branch and bound method. For example, the branch and cut method that combines both branch and bound and cutting plane methods. Branch and bound algorithms have a number of advantages over algorithms that only use cutting planes. One advantage is that the algorithms can be terminated early and as long as at least one integral solution has been found, a feasible, although not necessarily optimal, solution can be returned. Further, the solutions of the LP relaxations can be used to provide a worst-case estimate of how far from optimality the returned solution is. Finally, branch and bound methods can be used to return multiple optimal solutions.

Lenstra in 1983 showed that, when the number of variables is fixed, the feasibility integer programming problem can be solved in polynomial time.

Heuristic methods

Since integer linear programming is NP-hard, many problem instances are intractable and so heuristic methods must be used instead. For example, tabu search can be used to search for solutions to ILPs. To use tabu search to solve ILPs, moves can be defined as incrementing or decrementing an integer constrained variable of a feasible solution, while keeping all other integer-constrained variables constant. The unrestricted variables are then solved for. Short term memory can consist of previous tried solutions while medium term memory can consist of values for the integer constrained variables that have resulted in high objective values (assuming the ILP is a maximization problem). Finally, long term memory can guide the search towards integer values that have not previously been tried.

Other heuristic methods that can be applied to ILPs include

  • Hill climbing
  • Simulated annealing
  • Reactive search optimization
  • Ant colony optimization
  • Hopfield neural networks

There are also a variety of other problem-specific heuristics, such as the k-opt heuristic for the travelling salesman problem. Note that a disadvantage of heuristic methods is that if they fail to find a solution, it cannot be determined whether it is because there is no feasible solution or whether the algorithm simply was unable to find one. Further, it is usually impossible to quantify how close to optimal a solution returned by these methods is.


Mixed binary integer programming matlab - acciamelte's diary
src: www.mathworks.com


References


Integer Constraints in Linear Programming - YouTube
src: i.ytimg.com


Further reading

  • George L. Nemhauser; Laurence A. Wolsey (1988). Integer and combinatorial optimization. Wiley. ISBN 978-0-471-82819-8. 
  • Alexander Schrijver (1998). Theory of linear and integer programming. John Wiley and Sons. ISBN 978-0-471-98232-6. 
  • Laurence A. Wolsey (1998). Integer programming. Wiley. ISBN 978-0-471-28366-9. 
  • Dimitris Bertsimas; Robert Weismantel (2005). Optimization over integers. Dynamic Ideas. ISBN 978-0-9759146-2-5. 
  • John K. Karlof (2006). Integer programming: theory and practice. CRC Press. ISBN 978-0-8493-1914-3. 
  • H. Paul Williams (2009). Logic and Integer Programming. Springer. ISBN 978-0-387-92279-9. 
  • Michael Jünger; Thomas M. Liebling; Denis Naddef; George Nemhauser; William R. Pulleyblank; Gerhard Reinelt; Giovanni Rinaldi; Laurence A. Wolsey, eds. (2009). 50 Years of Integer Programming 1958-2008: From the Early Years to the State-of-the-Art. Springer. ISBN 978-3-540-68274-5. 
  • Der-San Chen; Robert G. Batson; Yu Dang (2010). Applied Integer Programming: Modeling and Solution. John Wiley and Sons. ISBN 978-0-470-37306-4. 

Integer Programming Optimization Tester Cover Letter@ Integer ...
src: myfoodietreats.info


External links

  • A Tutorial on Integer Programming
  • Conference Integer Programming and Combinatorial Optimization, IPCO
  • The Aussois Combinatorial Optimization Workshop

Source of article : Wikipedia