public ControlledLRxTravelHyperNetwork(DPNProblemContext ctx, DiscreteTimeAdapter adapter, ObjectTravelHyperNetwork objNet, CustomerArrival customer, //旅客 Dictionary <CustomerArrival, List <TravelPath> > PathDict, Dictionary <IServiceSegment, decimal> LM_rho, //拉格朗日乘子 ρ Dictionary <CustomerArrival, Dictionary <TravelPath, decimal> > LM_mu, //拉格朗日乘子 μ Dictionary <IEdge <TravelHyperNode>, decimal> LM_lambda, Dictionary <IEdge <TravelHyperNode>, bool> y) : base(ctx, adapter, objNet, customer, PathDict, LM_rho, LM_mu, LM_lambda) { _y = y; }
public LRxSimNetwork(DPNProblemContext ctx, DiscreteTimeAdapter adapter, ObjectTravelHyperNetwork objNet, CustomerArrival customer, //旅客 Dictionary <CustomerArrival, List <TravelPath> > PathDict, Dictionary <IServiceSegment, decimal> LM_rho, //拉格朗日乘子 ρ Dictionary <CustomerArrival, Dictionary <TravelPath, decimal> > LM_mu, //拉格朗日乘子 μ Dictionary <IEdge <TravelHyperNode>, decimal> LM_lambda, Dictionary <IEdge <TravelHyperNode>, bool> y) : base(ctx, adapter, y) { _LM_rho = LM_rho; _LM_mu = LM_mu; _LM_lambda = LM_lambda; _u = (PathDict.ContainsKey(customer) ? PathDict[customer].Sum(i => LM_mu[customer][i]) : 0m); _objNet = objNet; }