Muxammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti algoritimlash va loyihalash Amaliy ish -1


Download 95.71 Kb.
bet2/3
Sana18.06.2023
Hajmi95.71 Kb.
#1567543
1   2   3
Bog'liq
1-amaliy ish Adhamjon

Ustun asosining elementlari (B)

Oldingi iteratsiyaning hisob-kitoblari natijalari uchun biz x 6 asosidan o'zgaruvchini olib tashlaymiz va uning o'rniga x 1 ni qo'yamiz . Boshqa barcha hujayralar o'zgarishsiz qoladi.


Cb ustun elementlari

Ushbu ustunning har bir katakchasi mos keladigan qatordagi asosiy o'zgaruvchiga mos keladigan koeffitsientga teng.


Cb1 = 24;


Cb2 = 20;
Cb3 = 25;


O'zgaruvchan o'zgaruvchilarning qiymatlari va P ustuni
(Oldingi iteratsiya ma'lumotlari dastlabki ma'lumotlar sifatida olinadi) Barcha kataklarni bazaga kiritilgan o'zgaruvchiga mos keladigan nol bilan to'ldiring:
(Rezolyutsiya elementi o'zgarishsiz qoladi)


x 1,1 = 0;


x 2,1 = 0;

Biz oldingi jadvaldagi hal qiluvchi element bilan qatorni joriy jadvalga o'tkazamiz, uning qiymatlarini hal qiluvchi elementga elementlar bo'yicha ajratamiz:


Qolgan bo'sh katakchalar, hisoblar qatori va Q ustunidan tashqari, hal qiluvchi elementga nisbatan to'rtburchaklar usuli yordamida hisoblanadi:


P2 = (P2 * x1,4) - (x2,4 * P1) / x1,4 = ((7.51 * 0.96) - (-0.76 * 22.19)) / 0.96 = 25;


P3 = (P3 * x1,4) - (x3,4 * P1) / x1,4 = ((18.22 * 0.96) - (-0.08 * 22.19)) / 0.96 = 20;
x2,1 = ((x2,1 * x1,4) - (x2,4 * x1,1)) / x1,4 = ((0 * 0.96) - (-0.76 * 1)) / 0.96 = 0.79;
x2,2 = ((x2,2 * x1,4) - (x2,4 * x1,2)) / x1,4 = ((1 * 0.96) - (-0.76 * 0)) / 0.96 = 1;
x2,3 = ((x2,3 * x1,4) - (x2,4 * x1,3)) / x1,4 = ((0 * 0.96) - (-0.76 * 0)) / 0.96 = 0;
x2,4 = ((x2,4 * x1,4) - (x2,4 * x1,4)) / x1,4 = ((-0.76 * 0.96) - (-0.76 * 0.96)) / 0.96 = 0;
x2,6 = ((x2,6 * x1,4) - (x2,4 * x1,6)) / x1,4 = ((0.24 * 0.96) - (-0.76 * -0.04)) / 0.96 = 0.21;
x2,7 = ((x2,7 * x1,4) - (x2,4 * x1,7)) / x1,4 = ((0.07 * 0.96) - (-0.76 * -0.1)) / 0.96 = -0.01;
x3,1 = ((x3,1 * x1,4) - (x3,4 * x1,1)) / x1,4 = ((0 * 0.96) - (-0.08 * 1)) / 0.96 = 0.08;
x3,2 = ((x3,2 * x1,4) - (x3,4 * x1,2)) / x1,4 = ((0 * 0.96) - (-0.08 * 0)) / 0.96 = 0;
x3,3 = ((x3,3 * x1,4) - (x3,4 * x1,3)) / x1,4 = ((1 * 0.96) - (-0.08 * 0)) / 0.96 = 1;
x3,4 = ((x3,4 * x1,4) - (x3,4 * x1,4)) / x1,4 = ((-0.08 * 0.96) - (-0.08 * 0.96)) / 0.96 = 0;
x3,6 = ((x3,6 * x1,4) - (x3,4 * x1,6)) / x1,4 = ((-0.08 * 0.96) - (-0.08 * -0.04)) / 0.96 = -0.08;
x3,7 = ((x3,7 * x1,4) - (x3,4 * x1,7)) / x1,4 = ((0.18 * 0.96) - (-0.08 * -0.1)) / 0.96 = 0.18;


Download 95.71 Kb.

Do'stlaringiz bilan baham:
1   2   3




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling