Комплекс компьютерных программ эффективного математического моделирования на языке Турбо Паскаль. Черный А.А. - 12 стр.

UptoLike

Составители: 

12
writeln(F0,'X=',X,' F3=',F3,' F4=',F4);
writeln(F0,'H3=',H3,' H4=',H4);
writeln(F0,'L3=',L3,' L4=',L4);
writeln(F0,'K3=',K3,' K4=',K4);
for K5:=1 to X do
begin
F[K5]:=0; F[K5]:=F3+K5*F4;
writeln('F(',K5,')=',F[K5]);
H[K5]:=0; H[K5]:=H3+K5*H4;
writeln('H(',K5,')=',H[K5]);
L[K5]:=0; L[K5]:=L3+K5*L4;
writeln('L(',K5,')=',L[K5]);
K[K5]:=0; K[K5]:=K3+K5*K4;
writeln('K(',K5,')=',K[K5]);
end;
GB2490; GB2500;GB2510;
GB2520; GB2600;
for K5:=1 to X do
writeln('Z(',K5,')=',Z[K5]);
OUT_F_H_L(I0);
end;{if}
if I0=77 then
writeln('Выявление MAX Z(K5) и MIN Z(K5)');
K8:=0; K8:=Z[1];
for K5:=1 to X do
if Z[K5]>=K8 then K8:=Z[K5];
writeln('MAX Z(K5)=',K8);
writeln(F0,'MAX Z(K5)=',K8);
for K5:=1 to X do
if Z[K5]=K8 then
begin
writeln('MAX Z(',K5,')=',Z[K5]);
writeln(F0,'MAX Z(',K5,')=',Z[K5]);
end;
K7:=0; K7:=Z[1];
for K5:=1 to X do
if Z[K5]<=K7 then K7:=Z[K5];
begin
writeln('MIN Z(K5)=',K7);
writeln(F0,'MIN Z(K5)=',K7);
end;
for K5:=1 to X do
if Z[K5]=K7 then
begin
writeln('MIN Z(',K5,')=',Z[K5]);
writeln(F0,'MIN Z(',K5,')=',Z[K5]);
end;
writeln('MIN Z(K5)=K7, MAX Z(K5)=K8');
writeln('K6(K5)=(Z(K5)+abs(K7))/(abs(K7)+abs(K8))');
writeln(F0,'MIN Z(K5)=K7, MAX Z(K5)=K8');
writeln(F0,'K6(K5)=(Z(K5)+abs(K7))/(abs(K7)+abs(K8))');
for K5:=1 to X do
begin
KK6[K5]:=(Z[K5]+abs(K7))/(abs(K7)+abs(K8));
writeln('K6(',K5,')=',KK6[K5]);
writeln(F0,'K6(',K5,')=',KK6[K5]);
end;
    writeln(F0,'X=',X,' F3=',F3,' F4=',F4);
    writeln(F0,'H3=',H3,' H4=',H4);
    writeln(F0,'L3=',L3,' L4=',L4);
    writeln(F0,'K3=',K3,' K4=',K4);
    for K5:=1 to X do
     begin
      F[K5]:=0; F[K5]:=F3+K5*F4;
      writeln('F(',K5,')=',F[K5]);
      H[K5]:=0; H[K5]:=H3+K5*H4;
      writeln('H(',K5,')=',H[K5]);
      L[K5]:=0; L[K5]:=L3+K5*L4;
      writeln('L(',K5,')=',L[K5]);
      K[K5]:=0; K[K5]:=K3+K5*K4;
      writeln('K(',K5,')=',K[K5]);
     end;
    GB2490; GB2500;GB2510;
    GB2520; GB2600;
    for K5:=1 to X do
      writeln('Z(',K5,')=',Z[K5]);
    OUT_F_H_L(I0);
  end;{if}
if I0=77 then
writeln('Выявление MAX Z(K5) и MIN Z(K5)');
K8:=0; K8:=Z[1];
 for K5:=1 to X do
if Z[K5]>=K8 then K8:=Z[K5];
writeln('MAX Z(K5)=',K8);
writeln(F0,'MAX Z(K5)=',K8);
for K5:=1 to X do
  if Z[K5]=K8 then
    begin
     writeln('MAX Z(',K5,')=',Z[K5]);
     writeln(F0,'MAX Z(',K5,')=',Z[K5]);
    end;
K7:=0; K7:=Z[1];
for K5:=1 to X do
  if Z[K5]<=K7 then K7:=Z[K5];
    begin
     writeln('MIN Z(K5)=',K7);
     writeln(F0,'MIN Z(K5)=',K7);
    end;
for K5:=1 to X do
  if Z[K5]=K7 then
    begin
     writeln('MIN Z(',K5,')=',Z[K5]);
     writeln(F0,'MIN Z(',K5,')=',Z[K5]);
    end;
writeln('MIN Z(K5)=K7, MAX Z(K5)=K8');
writeln('K6(K5)=(Z(K5)+abs(K7))/(abs(K7)+abs(K8))');
writeln(F0,'MIN Z(K5)=K7, MAX Z(K5)=K8');
writeln(F0,'K6(K5)=(Z(K5)+abs(K7))/(abs(K7)+abs(K8))');
for K5:=1 to X do
  begin
    KK6[K5]:=(Z[K5]+abs(K7))/(abs(K7)+abs(K8));
    writeln('K6(',K5,')=',KK6[K5]);
    writeln(F0,'K6(',K5,')=',KK6[K5]);
  end;




                                              12