function [ind_constraint] = constraint_check(T,H)
for i = 1:length(T)
    if sum(T(1:i))-sum(H(1:i))<=0
        ind_constraint = 1;
    else
        ind_constraint = 0;
        break
    end
end