?? initill.m
字號:
function x=initill(n)
% Usage:
% x=initill(n)
% Sets the global constant matrices and vectors of the dimension <n>
% and returns the standard starting point <x>
% for the Ill-conditioned Linear Programming problem.
global matrA vectB vectC
vectB=[]; vectC=[]; matrA=[];
for i=1:n,
x(i)=0; vectB(i)=0;
for j=1:n
matrA(i,j)=1/(i+j); vectB(i)=vectB(i)+1/(i+j);
end
vectC(i)=-1/(i+1)-vectB(i);
end
vectB=vectB'; vectC=vectC'; x=x';
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -