function x=bruteforce(inSource,loadAll,loadOwn,capacity,buffer) x=max(capacity); for e=1:length(loadAll) if(loadOwn(e)!=0 && capacity(e)