Galoitica: Journal of Mathematical Structures and Applications cover
Galoitica: Journal of Mathematical Structures and Applications

Online ISSN 2834-5568

Full Length Article

Volume 3 • Issue 2 • PP: 28-35 • 2023

Improving Karmarker Algorithm to Obtain Optimal Solution

Ahmad Khaldi 1*
1Mutah University, Faculty of Science, Jordan
* Corresponding Author.
verified

Open Access & Copyright

© 2023 The Author(s). Published by ASPG. This article is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

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.

Full Text

This HTML version is generated from the article PDF. The PDF remains the version of record.

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.

Continue Reading

View the full issue arrow_forward

Cite This Article

Choose your preferred format

format_quote
Khaldi, Ahmad. “Improving Karmarker Algorithm to Obtain Optimal Solution.” Galoitica: Journal of Mathematical Structures and Applications, vol. 3, no. 2, 2023, pp. 28–35. https://doi.org/10.54216/GJMSA.030204.
Khaldi, A. (2023). Improving Karmarker Algorithm to Obtain Optimal Solution. Galoitica: Journal of Mathematical Structures and Applications, 3(2), 28–35. https://doi.org/10.54216/GJMSA.030204
Khaldi, Ahmad. “Improving Karmarker Algorithm to Obtain Optimal Solution.” Galoitica: Journal of Mathematical Structures and Applications 3, no. 2 (2023): 28–35. https://doi.org/10.54216/GJMSA.030204.
Khaldi, A. (2023) ‘Improving Karmarker Algorithm to Obtain Optimal Solution’, Galoitica: Journal of Mathematical Structures and Applications, 3(2), pp. 28–35. Available at: https://doi.org/10.54216/GJMSA.030204.
Khaldi A. Improving Karmarker Algorithm to Obtain Optimal Solution. Galoitica: Journal of Mathematical Structures and Applications. 2023;3(2):28-35. doi:10.54216/GJMSA.030204
A. Khaldi, “Improving Karmarker Algorithm to Obtain Optimal Solution,” Galoitica: Journal of Mathematical Structures and Applications, vol. 3, no. 2, pp. 28–35, 2023, doi: 10.54216/GJMSA.030204.
policy

Publisher's Note

The statements, opinions, and data presented in this article are solely those of the author(s) and do not necessarily represent those of ASPG, the journal, or its editors. ASPG and the editors disclaim responsibility for any harm arising from the use of any ideas, methods, instructions, or products described in this article, to the fullest extent permitted by applicable law.

Digital Archive Ready