Beispiel #1
0
def apply_lp_dpcp_bounds(all_tasks, resource_mapping, use_rta = True):
    model = get_cpp_model(all_tasks)
    topo  = get_cpp_topology(resource_mapping)
    res = lp_cpp.lp_dpcp_bounds(model, topo, use_rta)
    for i, t in enumerate(all_tasks):
        t.suspended = res.get_remote_blocking(i)
        t.blocked   = res.get_blocking_term(i)
    return res
Beispiel #2
0
def apply_lp_dpcp_bounds(all_tasks, resource_mapping,
                         use_rta = True, use_py=False):
    if use_py or not lp_cpp_available:
        apply_py_lp_bounds(dpcp, all_tasks, resource_mapping, use_rta)
    else:
        model = get_cpp_model(all_tasks)
        topo  = get_cpp_topology(resource_mapping)
        res = lp_cpp.lp_dpcp_bounds(model, topo, use_rta)
        for i, t in enumerate(all_tasks):
            t.suspended = res.get_remote_blocking(i)
            t.blocked   = res.get_blocking_term(i)
        return res
Beispiel #3
0
def apply_lp_dpcp_bounds(all_tasks, resource_mapping,
                         use_rta = True, use_py=False):
    if use_py or not lp_cpp_available:
        apply_py_lp_bounds(dpcp, all_tasks, resource_mapping, use_rta)
    else:
        model = get_cpp_model(all_tasks)
        topo  = get_cpp_topology(resource_mapping)
        res = lp_cpp.lp_dpcp_bounds(model, topo, use_rta)
        for i, t in enumerate(all_tasks):
            t.suspended = res.get_remote_blocking(i)
            t.blocked   = res.get_blocking_term(i)
        return res