OfficeComplexConstants.VARIABLE_PRICING_FACTOR, OfficeComplexConstants.INTERRUPTIBILITY_FACTOR); te.withInconvenienceWeight(weight) .withInertia(Double.parseDouble(conf .getProperty(type + "Inertia"))) OfficeComplexConstants.VARIABLE_PRICING_FACTOR, OfficeComplexConstants.INTERRUPTIBILITY_FACTOR); te.withInconvenienceWeight(weight) .withInertia(Double.parseDouble(conf .getProperty(type + "Inertia")))
VillageConstants.VARIABLE_PRICING_FACTOR, VillageConstants.INTERRUPTIBILITY_FACTOR); te.withInconvenienceWeight(weight) .withInertia(Double.parseDouble(conf .getProperty(type + "Inertia"))) VillageConstants.VARIABLE_PRICING_FACTOR, VillageConstants.INTERRUPTIBILITY_FACTOR); te.withInconvenienceWeight(weight) .withInertia(Double.parseDouble(conf .getProperty(type + "Inertia")))
.withTariffSwitchFactor(subStructure.getTariffSwitchFactor()) .withPreferredContractDuration(subStructure.getExpectedDuration()) .withInconvenienceWeight(subStructure.getInconvenienceWeight()) .withRationality(subStructure.getLogitChoiceRationality()) .withEvaluateAllTariffs(true);
private TariffEvaluator createTariffEvaluator () { TariffEvaluationWrapper wrapper = new TariffEvaluationWrapper(); TariffEvaluator te = new TariffEvaluator(wrapper); te.initializeInconvenienceFactors(config.getTouFactor(), config.getTieredRateFactor(), config.getVariablePricingFactor(), config.getInterruptibilityFactor()); double weight = generator.nextDouble() * config.getWeightInconvenience(); double expDuration = config.getMinDefaultDuration() + generator.nextInt(config.getMaxDefaultDuration() - config.getMinDefaultDuration()); te.withInconvenienceWeight(weight) .withInertia(config.getNsInertia()) .withPreferredContractDuration(expDuration) .withRationality(config.getRationalityFactor()) .withTariffEvalDepth(config.getTariffCount()) .withTariffSwitchFactor(config.getBrokerSwitchFactor()); te.initializeRegulationFactors(car.getHomeChargeKW() * car.getCurtailmentFactor(), car.getHomeChargeKW() * car.getDischargeFactor(), car.getHomeChargeKW() * car.getDownRegFactor()); return te; }