from
simplex tableau and Matlab
by Chun Zheng
Solving the simplex tableau using matlab
|
| newMat=pivot(mat, row, col)
|
function newMat=pivot(mat, row, col)
%normalize this row
mat(row,:)=mat(row,:)./mat(row, col); %make the leading a number a 1
for r=1:length(mat(:,1))
if(r~=row)
mat=multFromRowToRow(mat, row,r,-mat(r,col));
end
end
newMat=mat;
|
|
Contact us at files@mathworks.com