function [u,t_min] = LEM_LBSD_get_UAS(UAS,pt,vertexes)
%

LOAD_TIME = 300;

num_UAS = length(UAS);
available = zeros(num_UAS,1);

for k = 1:num_UAS
    sched = UAS(k).schedule;
    [num_flights,dummy] = size(sched);
    if num_flights==1
        t_avail = sched(end,end) + LOAD_TIME;
    else
        t_avail = sched(end-1,end) + LOAD_TIME;
    end
    available(k) = t_avail;
end
[vals,indexes] = sort(available);
u = indexes(1);
t_min = vals(1);
