def LA_ue(factors, output):
    '''
    parametric study for computing equilibrium flows with different demand factors
    '''
    net, demand, node, geom = load_LA_3()
    demand[:, 2] = demand[:, 2] / 4000.
    single_class_parametric_study(factors, output, net, demand)
def LA_ue(factors, output):
    '''
    parametric study for computing equilibrium flows with different demand factors
    '''
    net, demand, node, geom = load_LA_3()
    demand[:,2] = demand[:,2] / 4000.
    single_class_parametric_study(factors, output, net, demand)
def LA_so(factors, output):
    '''
    parametric study for computing social optimum with different demand factors
    '''
    net, demand, node, geom = load_LA_3()
    demand[:, 2] = demand[:, 2] / 4000.
    net2 = net_with_marginal_cost(net)
    single_class_parametric_study(factors, output, net2, demand)
def LA_so(factors, output):
    '''
    parametric study for computing social optimum with different demand factors
    '''
    net, demand, node, geom = load_LA_3()
    demand[:,2] = demand[:,2] / 4000.
    net2 = net_with_marginal_cost(net)
    single_class_parametric_study(factors, output, net2, demand) 
def LA_ue_K(factors, thres, cog_cost, output):
    '''
    parametric study for computing equilibrium flows with different demand factors
    and cognitive cost
    '''
    net, demand, node, geom = load_LA_3()
    demand[:, 2] = demand[:, 2] / 4000.
    net2, small_capacity = multiply_cognitive_cost(net, geom, thres, cog_cost)
    single_class_parametric_study(factors, output, net2, demand)
def LA_ue_K(factors, thres, cog_cost, output):
    '''
    parametric study for computing equilibrium flows with different demand factors
    and cognitive cost
    '''
    net, demand, node, geom = load_LA_3()
    demand[:,2] = demand[:,2] / 4000.
    net2, small_capacity = multiply_cognitive_cost(net, geom, thres, cog_cost)
    single_class_parametric_study(factors, output, net2, demand)