from Optimize Truss by FSD and SLP by Nguyen Quoc Duan
Optimize Truss by Fully Stress Design and Sequential Linear Programming

X=linsystem(Xf)
function X=linsystem(Xf)
% solve linear equation system

% Discrete X into matrice: A,b,f
b=Xf(:,4);
m=length(b);
b(m)=[];
Xf(:,4)=[];
A=Xf;
A(m,:)=[];
f=Xf(m,:);

% Compute Xf
X=linprog(f,A,b);



Contact us at files@mathworks.com