Write a function that will take in a simplex tableau and an associated basis, and return the initial feasible
2 views (last 30 days)
Show older comments
Please help me with this question.. I have attached the.m file of my code.
Also, here is the sample tableau and basis
tableau = [0 -2 0 0 0;
1 -1 1 0 4;
-1 1 0 1 1]
basis = [3; 4]
9 Comments
Søren Jensen
on 30 Apr 2015
Edited: Søren Jensen
on 30 Apr 2015
i do not know the whole code, so i can't know what you want to do exactly, but:
"basis(i+1)" cannot be higher than "basis(2)" because you only have 2 elements in the basis vector.. Therefore the only possible values of "i" is 0 and 1.
if you want to iterate i further than 1 in the code you gave your basis vector must be longer.
If you don't want your basis vector to be longer than 2 you have to think about the logic in your iterations.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!