MATLAB linear programming

Please help me fill out the fuction format for below question...



Objective:
Max: 6 x1 + 5 x2 + 4 x3 + 5 x4 + 6 x5
Constraints:
x1 + x2 + x3 + x4 + x5 <= 3
5x1 + 4x2 + 3x3 + 2x4 + x5 <= 14
x1? x2?x3?x4?x5 >= 0



_____________________________________________________
function vert = feassol(A,b)

[m,n] = size(A);
b = b(:);
vert = [];

if n=0 & (x~= inf & x~= -inf))
y(t(i,:)) = x;
vert = [vert y];
end

end
end

if ~isempty(vert)
vert = delcols(vert);
else
vert = [];
end

_______________________________________________________________



Thanks!


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories