for d_idx in tmm_index[notna.loc[o_idx,:]]:
            if o_idx != d_idx:
                service_time[o_idx,d_idx] = o_sv