.getProperty(type + "Rationality"))) .withTariffEvalDepth(OfficeComplexConstants.TARIFF_COUNT) .withTariffSwitchFactor(OfficeComplexConstants.TARIFF_SWITCH_FACTOR); .getProperty(type + "Rationality"))) .withTariffEvalDepth(OfficeComplexConstants.TARIFF_COUNT) .withTariffSwitchFactor(OfficeComplexConstants.TARIFF_SWITCH_FACTOR);
.getProperty(type + "Rationality"))) .withTariffEvalDepth(VillageConstants.TARIFF_COUNT) .withTariffSwitchFactor(VillageConstants.TARIFF_SWITCH_FACTOR); .getProperty(type + "Rationality"))) .withTariffEvalDepth(VillageConstants.TARIFF_COUNT) .withTariffSwitchFactor(VillageConstants.TARIFF_SWITCH_FACTOR);
new TariffEvaluator(new TariffEvaluationWrapper(bundle)) .withChunkSize(Math.max(1, bundle.getPopulation() / 1000)) .withTariffSwitchFactor(subStructure.getTariffSwitchFactor()) .withPreferredContractDuration(subStructure.getExpectedDuration()) .withInconvenienceWeight(subStructure.getInconvenienceWeight())
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; }