Galoitica: Journal of Mathematical Structures and Applications

Improving Karmarker Algorithm to Obtain Optimal Solution

Ahmad Khaldi
Volume 3, Issue 2, pp. 28-35 (2023)
DOI: https://doi.org/10.54216/GJMSA.030204
Online: https://www.americaspg.com/journal/33/article/1591

Abstract

In this research, the Karmarker's method of linear programming was improved using the eigenvector of the starting point with all iterations.Where the improvement showed that Karmarker's method can be reduced in a theoretical way by direct method without iterations and access to the optimal solution. The procedure was also Comparison of the two methods and the results of the proposed method were faster and better to reach.

Keywords: Karmarker's algorithm; optimal solution; linear programming.

The perfect solution

Linear programming currently occupies a prestigious position in the field of research. The processes have wide applications in many scientific fields and over time have been. The development of scientific methods used to solve the dilemmas of linear programming after the war. This use of linear programming has appeared under the name of Operations Research. Linear programming methods are applied to find the best use of limited resources, and the word. Programming means using a certain method to get the best possible solutions to a problem Finite resource relation, a linear adjective used to describe the relationship between two variables or more, the solution that fits the constraints of the problem and the objective function is called the optimal solution. A new algorithm ( Karmarker1984 ), to solve problems of all kinds of linear and nonlinear problems , which was much faster. His method consisted of repeated applications. (Simplex) from the simple solo method and each of them is followed by a Homomorphism through the spherical body, (Projection) of projective transitions described for the purpose of creating a sequence of Interior points that approximates towards the optimal solution in the case of a polynomial. Since the Karmarker's method was found, point methods have attracted internal interest of some famous experts in operations research and in mathematics

The canonical form of the Karmarker's method in solving linear programming

The (LP) problem needs the following:

[1] The centre π‘Ž0 in βˆ† i.e. π‘Ž0 ∈Ω.

[2] The optimized solution of goal function is zero in Ξ©.

[3] The matrix [ 𝐴 𝑒𝑇] has order m+1.

[4] π‘ž> 0 has the property π‘’π‘‡π‘Ž0 ≀2βˆ’π‘ž, then x is the solution.

π‘šπ‘–π‘› 𝑒𝑇π‘₯, π‘₯βˆˆπ‘…π‘›
𝑠. 𝑑.
π‘₯∈Ω βˆ©βˆ†

where

Ξ© = {π‘₯βˆˆπ‘…π‘›; 𝐴π‘₯= 0}
βˆ†= {π‘₯βˆˆπ‘…π‘›; 𝑒𝑇π‘₯= 1, π‘₯β‰₯0}
𝑒𝑇= [1,1, … ,1] βˆˆπ‘…π‘›, π΄βˆˆπ‘…π‘šΓ—π‘›, π‘βˆˆπ‘…π‘›, 𝑛β‰₯2.

Karamarker algorithm:

Step 1: we start at π‘₯0 =

𝑒 𝑛, π‘˜= 0, πœ€> 0.

Step 2: we stop at 𝑒𝑇π‘₯π‘˜< πœ€ other wise go to step 3.

Step 3: find the point π‘¦π‘˜= π‘₯π‘˜βˆ’πœƒπ‘Ÿπ‘‘π‘˜, where πœƒ= π‘›βˆ’1 3𝑛 , π‘Ÿ= 1 βˆšπ‘›(π‘›βˆ’1).
π‘‘π‘˜= π‘ƒπ‘˜ β€–π‘ƒπ‘˜β€–
𝑇(π΅π‘˜π΅π‘˜ 𝑇)βˆ’1π΅π‘˜)π·π‘˜π‘ π‘ƒπ‘˜= (πΌβˆ’π΅π‘˜
π·π‘˜= diag (π‘₯π‘˜)
π΅π‘˜= [π΄π‘˜ 𝑒𝑇]
π΄π‘˜= Aπ·π‘˜.
Step 4: π‘₯π‘˜+1 = π·π‘˜π‘¦π‘˜ π‘’π‘‡π·π‘˜π‘¦π‘˜.

Then, we add k unit, then going back to step 2.

The points we get, are in the useful area:

Ξ© βˆ©βˆ†= {π‘₯βˆˆπ‘…π‘›: 𝐴π‘₯= 0, 𝑒𝑇π‘₯= 1, π‘₯β‰₯0}
= {π‘₯βˆˆπ‘…π‘›: [ 𝐴 𝑒𝑇] π‘₯= [0 1] , π‘₯β‰₯0}
= {π‘₯βˆˆπ‘…π‘›: B0π‘₯= [0 1] , π‘₯β‰₯0}
B0 βˆˆπ‘…(π‘š+1)×𝑛.

Suggested method:

The main differences between the suggested method and Karamarker method that the suggested method uses one vector 𝑑0 with starting point π‘₯0.

3π‘›βˆ’1 instead of πœƒ= π‘›βˆ’1 𝑛 3𝑛.

Then use πœƒ=

Step 1: we start at π‘₯0 =

𝑒 𝑛, π‘˜= 0, πœ€> 0.

Step 2: we stop at 𝑒𝑇π‘₯π‘˜< πœ€ other wise go to step 3.

Step 3: find the point π‘¦π‘˜= π‘₯π‘˜βˆ’πœƒπ‘Ÿπ‘‘π‘˜, where

πœƒ= 𝑛 3(π‘›βˆ’1) , π‘Ÿ= 1 βˆšπ‘›(π‘›βˆ’1)
𝑑0 = 𝑃0 ‖𝑃0β€–
𝑇(𝐡0𝐡0 𝑇)βˆ’1𝐡0)𝐷0𝑐 𝑃0 = (πΌβˆ’π΅0
𝐷0 = diag (π‘₯0)
𝐡0 = [𝐴0 𝑒𝑇]
𝐴0 = A𝐷0

𝑠tep 4:

𝐷0π‘¦π‘˜ 𝑒𝑇𝐷0π‘¦π‘˜. π‘₯π‘˜+1 =
Then, we get π‘₯1, π‘₯2, … … , π‘₯𝑛 and π‘₯∈Ω βˆ©βˆ†.

Then, we get:

𝑦0 = π‘₯0 βˆ’πœƒπ‘Ÿπ‘‘0
π‘₯1 = 𝐷0𝑦0 𝑒𝑇𝐷0𝑦0 = 𝑦0
𝑑0 = 𝑃0 ‖𝑃0β€–
𝑇(𝐡0𝐡0 𝑇)βˆ’1𝐡0)𝐷0𝑐 𝑃0 = (πΌβˆ’π΅0
𝐷0 = diag (π‘₯0)
𝐡0 = [𝐴0 𝑒𝑇]
𝐴0 = A𝐷0 = [[π‘Ž1 π‘Ž2] [0.5 0 0 0.5]] = [0.5π‘Ž1 0.5π‘Ž2]
𝐡0 = [𝐴𝐷0 𝑒𝑇] = [0.5π‘Ž1 0.5π‘Ž2 1 1 ] 2 + π‘Ž2 2) 0.5(π‘Ž1 + π‘Ž2) 0.5(π‘Ž1 + π‘Ž2) 2 ] 𝑇= [0.25(π‘Ž1 𝐡0𝐡0

Thus,

2 + π‘Ž2 2) 0 0 2] 𝑇= [0.25(π‘Ž1 𝐡0𝐡0
4 π‘Ž12 + π‘Ž22 0 𝑇)βˆ’1 = [ 0 0.5 ] (𝐡0𝐡0
𝑇)βˆ’1𝐡0 = 1 2(π‘Ž12 + π‘Ž22) [3π‘Ž1 2 + π‘Ž2 2 (π‘Ž1 + π‘Ž2)2 𝑇(𝐡0𝐡0 (π‘Ž1 + π‘Ž2)2 3π‘Ž1 2 + π‘Ž2 2] 𝐡0
= 1 2(π‘Ž12 + π‘Ž22) [3π‘Ž1 2 + π‘Ž2 2 0 0 3π‘Ž1 2 + π‘Ž2 2]
2 βˆ’π‘Ž1 2 [ π‘Ž2 2(π‘Ž12 + π‘Ž22) 0 𝑇)βˆ’1𝐡0 = (𝐡0𝐡0 2 βˆ’π‘Ž2 2 0 π‘Ž1 2(π‘Ž12 + π‘Ž22)]
𝐷0𝑐= [0.5 0 0 0.5] [𝑐1 𝑐2] = [0.5𝑐1 0.5𝑐2]
𝑇)βˆ’1𝐡0)𝐷0𝑐= [0 𝑇(𝐡0𝐡0 0] 𝑃0 = (πΌβˆ’π΅0
𝑑0 = [0 0].
0.5] βˆ’[0 0] = [0.5 0.5] 𝑦0 = π‘₯0 βˆ’πœƒπ‘Ÿπ‘‘0 = [0.5
[0.5 0 0 0.5][0.5 0.5] [1 1][0.5 0 0 0.5][0.5 0.5] = [0.5 0.5] = 𝑦0. 𝐷0𝑦0 𝑒𝑇𝐷0𝑦0 = π‘₯1 =
Also, 𝑦1 = π‘₯1 βˆ’πœƒπ‘Ÿπ‘‘0 = 𝑦0 βˆ’πœƒπ‘Ÿπ‘‘0 = π‘₯0 βˆ’πœƒπ‘Ÿπ‘‘0 βˆ’πœƒπ‘Ÿπ‘‘0 = π‘₯0 βˆ’2πœƒπ‘Ÿπ‘‘0, and
π‘₯2 = 𝑦1 = π‘₯0 βˆ’2πœƒπ‘Ÿπ‘‘0
π‘₯3 = 𝑦2 = π‘₯0 βˆ’3πœƒπ‘Ÿπ‘‘0
π‘₯ π‘˜= 𝑦 π‘˜βˆ’1 = π‘₯0 βˆ’ π‘˜πœƒπ‘Ÿπ‘‘0.

Testing results:

Test 1:

𝑀𝑖𝑛 𝑧= 2π‘₯2 βˆ’π‘₯3 s. t.
s. t.
π‘₯1 βˆ’2π‘₯2 + π‘₯3 = 0
π‘₯1 + π‘₯2 + π‘₯3 = 1
π‘₯1, π‘₯2, π‘₯3 β‰₯0

Test 2:

𝑀𝑖𝑛 𝑧= π‘₯1 + 2π‘₯2 βˆ’π‘₯3 s. t.
s. t.
π‘₯1 βˆ’π‘₯3 = 0
π‘₯1 + π‘₯2 + π‘₯3 = 1
π‘₯1, π‘₯2, π‘₯3 β‰₯0

Test 3:

𝑀𝑖𝑛 𝑧= π‘₯1 βˆ’2π‘₯2 + 6π‘₯3 s. t.
s. t.
π‘₯1 βˆ’π‘₯2 = 0
π‘₯1 + π‘₯2 + π‘₯3 = 1
π‘₯1, π‘₯2, π‘₯3 β‰₯0

Test 4:

𝑀𝑖𝑛 𝑧= 2π‘₯1 + π‘₯2 βˆ’2π‘₯3 s. t.
s. t.
π‘₯1 βˆ’π‘₯3 = 0
π‘₯1 + π‘₯2 + π‘₯3 = 1
π‘₯1, π‘₯2, π‘₯3 β‰₯0

Test 5:

𝑀𝑖𝑛 𝑧= π‘₯1 + π‘₯2 βˆ’π‘₯3 s. t.
s. t.
π‘₯2 βˆ’π‘₯3 = 0
π‘₯1 + π‘₯2 + π‘₯3 = 1
π‘₯1, π‘₯2, π‘₯3 β‰₯0

Test 6:

𝑀𝑖𝑛 𝑧= βˆ’π‘₯1 + 2π‘₯2 s. t.
s. t.
π‘₯1 βˆ’2π‘₯2 βˆ’π‘₯3 = 0
π‘₯1 + π‘₯2 + π‘₯3 = 1
π‘₯1, π‘₯2, π‘₯3 β‰₯0

Test 7:

𝑀𝑖𝑛 𝑧= π‘₯1 βˆ’3π‘₯2 + 3π‘₯3 s. t.
s. t.
π‘₯1 βˆ’3π‘₯2 + 2π‘₯3 = 0
π‘₯1 + π‘₯2 + π‘₯3 = 1
π‘₯1, π‘₯2, π‘₯3 β‰₯0

Test 8:

π‘€π‘Žπ‘₯ 𝑧= βˆ’4π‘₯1 + π‘₯3 βˆ’π‘₯4 s. t.
s. t.
βˆ’2π‘₯1 + 2π‘₯2 + π‘₯3 βˆ’π‘₯4 = 0
π‘₯1 + π‘₯2 + π‘₯3 + π‘₯4 = 1
π‘₯1, π‘₯2, π‘₯3, π‘₯4 β‰₯0

Test 9:

π‘€π‘Žπ‘₯ 𝑧= 5π‘₯1 + 5π‘₯2 βˆ’23π‘₯5
s. t.
3π‘₯1 + 8π‘₯2 + 3π‘₯3 βˆ’π‘₯4 βˆ’13π‘₯5 = 0
π‘₯1 + π‘₯2 + π‘₯3 + π‘₯4 + π‘₯5 = 1
π‘₯1, π‘₯2, π‘₯3, π‘₯4, π‘₯5 β‰₯0

We get the following tables:

Table 1

Figure
Figure
Figure
Figure
𝑍 π‘₯3 π‘₯2 π‘₯1 0.2593 0.25926 0.37037 0.2593 1 Karamarker
0.1373 0.13726 0.43137 0.1373 2 0.0210 0.021011 0.48949 0.0210 3 0.000 0.5 0.5 0.000 π‘˜= 2 Suggested method
Figure
Figure
Figure
Figure

References

  1. Edwin, K. P. and Stanislaw, H. Z., "An Introduction To Optimization", by John Wily & Sons, Inc., America, 2001.
  2. Karloff, H., "Linear Programming", Birkhauser .Boston.Berlin, 2009.
  3. Karmarker, N., "A new polynomial time algorithm for linear programming", Combinatorica 4 (1984), 373 -395.
  4. Kebbiche, Z., Keraghel, A. and Yassine, A., " An infeasible interior point method for the monotone linear
  5. complementarity problem ", Int. Journal of Math. Analysis, Vol. 1, 2007, No. 17, 841 – 849.
  6. Nash, S. G. and Sofer, A.," Linear and Nonlinear Programming", New York: McGraw-Hill, 1996.
  7. Nemirovski, A. S. and Todd, M. J., " Interior-point methods for optimization ", Acta Numerica (2008), pp.191–234
  8. Peng, j., Roos, C. and Terlaky, T.," A new and efficient large-update interior-point method for linear optimization", Tom 6, 2001,Ν2 4.
  9. Winston, W., L.,"Operation Research Application and Algorithm", Indian, 1994.
  10. Zsuzsanna, SΒ΄ and MΒ΄arta, K., " On interior-point methods and simplex method in linear programming", An. SΒΈt. Univ. Ovidius Constant a Vol. 11,2003 , No. 2, 155–162.