MATLAB: How can i make priority in matlab

optimization

i have many stations and i want to choose the highest load cost as first and so on
i have six stations with different loads

Best Answer

[maxload, maxidx] = max(TheLoads)
now maxload stores the value of the largest of TheLoads, and maxidx stores the index within TheLoads, so it tells you which load is largest.
Related Question