












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Several authors have suggested the use of neural networks as a tool to provide approximate solutions for combinatorial optimization problems such as graph matching, the traveling salesman, task placement in a distributed system, etc.
In this chapter, we first give a brief description of combinatorial optimization problems. Next we explain in general how neural networks can be used in combinatorial optimization and then introduce Hopfield network as optimizer for two well known combinatorial optimization problems: the graph partitioning and the traveling salesman.
Hopfield optimizer solves combinatorial optimization problems by gradient descent, which has the disadvantage of being trapped in local minima of the cost function.
By the use of techniques of complexity theory, it has been proved that no network of polynomial size exists to solve the traveling salesman problem unless NP=P. However, their parallel nature and good performance in finding approximate solution make the neural optimizers interesting.
The problems typically having a large but finite set of solutions among which we want to find the one that minimizes or maximizes a cost function are often referred as combinatorial optimization problems.
Since any maximization problem can be reduced to a minimization problem simply by changing the sign of the cost function, we will consider only the minimization problem with no loss of generality.
An instance of a combinatorial optimization problem can be formalized as a pair ( S, g).
The solution space, denoted by S, is the finite set of all possible solutions.
The cost function, denoted by g , is a mapping from the set of solutions to real numbers, that is, g : S →R.
In the case of minimization, the problem is to find a solution S* ∈ S , called globally- optimal solution , which satisfies
(4.1.1)
Notice that for a given instance of the problem, such an optimal solution may not be unique.
S S i i
∈
The probable situations for P and NP_complete problems are sketched in Figure 4.1.
(a) (b)
Figure 4.1 The class of NP problems a) assuming that P≠NP b) if any p∈NP_complete becomes p∈P, then implies P=NP
NP P
NP-complete
NP
P=NP-complete
A combinatorial optimization problem of a major theoretical and practical interest, is the traveling salesman problem (TSP), and it has been subject of much work.
This problem is NP_complete, and therefore computationally intractable for large instances of the problem.
It is of great practical use in various important areas such as circuit placement in VLSI, tool motion in manufacturing, network design etc.
Thus the development of methods searching for solutions that are close to the optimum, and yet not excessively time consuming, is the source for continued research.
In the TSP, the shortest closed path traversing each city under consideration exactly once is searched (Figure 4.2).
For TSP, the number of cities determines the size of the problem.
Figure 4.2 The traveling salesman problem a) an instance with 4 cities b) the optimum solution c) a nonoptimum solution d) a non feasible solution having some unvisited cities
Another problem that we will consider in this chapter because of its simplicity in designing a neural optimizer is the vertex cover problem.
It is also an NP_complete problem, therefore no efficient algorithms for its exact solution is available when the number of nodes in the graph is large.
The problem size is determined by the number of nodes in the graph for which a minimum cover is searched.
If we have to solve an NP_complete problem, then a very long computation may be needed for an exact solution.
The optimum solution of the vertex cover problem can be obtained by enumerating all the covers and then selecting the minimum one.
However such an enumerative search for the exact optimum solution have a time complexity of O(2 n ), where n is the number of vertices in the graph.
As vertex cover is an NP_complete problem, finding the exact minimum cover of G is not practical when the number of vertices is very large.
Thus, in some cases, approximate algorithms are preferred.
Solving a combinatorial optimization problem aims to find the "best" or "optimal" solution among a finite or countably infinite number of alternative solutions.
As an alternative to the conventional optimization methods, neural networks are used for the solution of combinatorial optimization problems.
In general, a neural optimizer is a neural network whose neurons are affecting the problem solution.
For instance neurons affecting the (city, position) pair of the tour can be used in the neural optimizer for solving the traveling salesman problem.
If a neuron is "on", this implies that the corresponding city should be visited in the given position in the approximately optimal solution.
Then strongly inhibitory links are established between neurons, which represent incompatible elements of the solution; for example, a city should not be visited twice, and a position should not be occupied by two different cities.
Furthermore, inhibitory links representing the cost are placed between neurons. For example, the intensity of inhibitory links can represent the distances between cities in the traveling salesman problem.
Once the model is set up, it is allowed to relax dynamically to a steady-state which should be of "minimum energy" representing a quasi-minimal cost solution.
Hopfield network, Boltzmann machine, mean field network, Gaussian machine and several other neural networks can be used as neural optimizers.
The units in these networks tend to optimize a global function of the state space, by using only local information.
Mean Field, Boltzmann and Gaussian machines are stochastic in nature and allow escaping from local optima.
An instance of a combinatorial optimization problem can be considered as a tuple ( S,S', g) where S is the finite set of solutions;
S' is the set of feasible solutions that satisfy the constraints of the problem;
g: S →R, is the cost function assigning a real value to each solution.
The aim is to find a feasible solution for which the cost function is optimal.
Another desired property of the network is feasibility. Let X* to denote the set of stable states of a neural network. The energy function E of the neural network is called feasible if all local minima of the energy function correspond to feasible solutions, that is
m ( X* )⊆ S' (4.2.2)
where
m ( X* ) = { S (^) i ∈ S ⎢ ∃ x k^ ∈ X* : m ( x k ) = Si }. (4.2.3)
Note that, if the energy function is order preserving, then the energy will be minimal for configurations corresponding to an optimal solution (Figure 4.3).
Furthermore, if the energy function is feasible, the network is guaranteed to converge to a feasible solution.
Figure 4.3: The goal of a neural optimizer is to converge to the global minimum of the energy function
Hence, feasibility and order-preservation of the energy function imply that the network will tend to find an optimal feasible solution for the given instance of the combinatorial optimization problem.
Further notice that if { S* }⊆ S' - m ( X *), where S * is the minimum solution. In such a case, the neural network will never converge to a state corresponding to the minimum solution, but to a near minimum one.
The neural optimizers are usually designed such that m ( X* )= S'
Consider the continuous valued asynchronous Hopfield model in which the outputs of the neurons are computed from its inputs using the sigmoidal relation. That is, for neuron i , it is in the form:
(4.3.1)
where κ is the gain constant and a (^) i is the activation determined by the equation:
As in the case of associative memory given in Chapter 3, we will consider again an extreme case. However, the output transfer function of the neurons here is shifted so that it takes values between 0 and 1, instead of -1 and 1.
1 κ
j i
N
j
ai = (^) ∑ wjix + θ = 1
The problem can be represented by a neural network in which each neuron corresponds to a vertex in the graph.
The outputs of neurons indicate whether the corresponding vertex is included in the cover or not.
The energy function should be formed so that it satisfies the constraints that we discussed above.
We are thus dealing with a special case of a very general class of problems, namely to find the minimum of a function in the presence of constraints.
emn + enm -2 xm emn -2 x (^) n emn + x (^) mxne (^) mn + xn x (^) m enm
ij
N i
N j ij ij
N i
N j i
N i
N j
= = = = = =
1 1 1 1 1 1
emn + enm -2 xm emn -2 x (^) n emn + x (^) mxne (^) mn + xn x (^) m enm = 2 -2 x (^) m -2 xn + x (^) mxn + xnx (^) m
emn + enm -2 xm emn -2 x (^) n emn + x (^) mxne (^) mn + xn x (^) m enm = 0
xm xn 2 -2 xm -2 xn + xm xn + x (^) nxm
(4.3.5)
(4.3.6)
C A e (^) ij x e x x e B x j
N
i
N i j
N
i
N ij i j j
N
i
N ij i i
N ( x ) = ( − + ) + = = = = = = =
1 1 1 1 1 1 1
= = = = =
n
i
ij i
n
i
n
j
ij i j
n
i
n
j
C A xi e xxe B x 1 1 1 1 1
( x ) ( 2 )
Now we will try to solve some more complicated traveling salesman problem. TSP is a benchmark attempted by almost all methods developed for combinatorial optimization.
This problem is also the one attempted by the Hopfield optimizer proposed in the classical paper [Hopfield 85].
TSP aims to find best order among the n cities to be visited. Expressed in a slightly different way, the visit order i in the tour should be determined for the each city α.
When a matrix of neurons is used to represent the problem, the energy of the network becomes:
(4.3.9)
where
x αi is the output of neuron α i, w α i, β j is the connection strength between the units α i and β j θ (^) α i,=w (^) α i, α i /2 is bias of neuron α i.
i j
n n
i
n n
j
ij
i
n n
i
i j i
n n
i
n n
j
ij
α β α β
αβ
α α
α β α α β
αβ θ
∑∑∑∑
∑∑∑∑ ∑∑
= = = =
= = = = = =
1 1 1 1 2 ,
1
1 1 1 1 1 1 2 ,
1
For a TSP solution , the followings should be satisfied
Each city should be visited exactly once; At each position of the travel route, there should be exactly one city; The length of the tour should be the minimum.
In order to have the cost function in the format of the energy function given it can be reorganized as:
i j
n n n
j
ij ij
n
i
n
i
n i
n
i
n
j
ij i j
n n
i
n
n n
i
i
n n
j
i j
n n n
i
α β α β
αβ αβ
α
α β α α β
α
α α
αβα β α β
∑ ∑∑∑
∑ ∑ ∑ ∑ ∑∑ ∑
∑ ∑∑∑ ∑∑ ∑
, 1 , 1
Since the constant terms have no effect on the location of the minima of the cost function, they can be eliminated. Furthermore, x α i = x α i^2 whenever x α i ∈{0,1}. Therefore, the cost function can be written as:
i j
n n n
j
ij ij
n
i
j
n
j
ij i
n
i
n n n
j
ij i j
n n
i
n
j
n j ij i
n i
n n n j i j
n n n i
d xx
xx B xx
xx A xx
α β α β
αβ αβ
αβ α β α β
αβ α β
αβ α β α β αβαβ α β
δ δ δ
δ δ δ
δ δ δ
, 1 , 1
x
and the cost function
i j
n n n
i
ij ij
n
i
j
n j
ij i
n i
n n n j
ij i j
n n i
n
j
n j ij i
n i
n n n j i j
n n n i
d xx
B xx B xx
xx A xx
α β α β
αβ αβ
αβ α β α β
αβ α β
αβ α β α β αβαβ α β
δ δ δ
δ δ δ
δ δ δ
, 1 , 1
x
i j
n n
i
n n
j
α β
∑∑∑∑ αβ = = = =
1 1 1 1 2 ,
1
Setting the weights as:
(4.3.14)
makes the energy function order preserving.
(4.3.15)
In order to have a feasible energy function, the inequality
(4.3.16)
should be satisfied [Abe 91].
w α i , β j = − A (δ (^) αβ+δ ij − 4 δαβδ ij )− Dd αβ( 1 −δαβ)(δ j , i + 1 + δ j , i − 1 )
A > 2 D max( d ) α β, αβ