.withPreferredContractDuration(weeks .withRationality(Double.parseDouble(conf .getProperty(type + "Rationality"))) .withTariffEvalDepth(VillageConstants.TARIFF_COUNT) .withPreferredContractDuration(weeks .withRationality(Double.parseDouble(conf .getProperty(type + "Rationality"))) .withTariffEvalDepth(VillageConstants.TARIFF_COUNT)
.withPreferredContractDuration(weeks .withRationality(Double.parseDouble(conf .getProperty(type + "Rationality"))) .withTariffEvalDepth(OfficeComplexConstants.TARIFF_COUNT) .withPreferredContractDuration(weeks .withRationality(Double.parseDouble(conf .getProperty(type + "Rationality"))) .withTariffEvalDepth(OfficeComplexConstants.TARIFF_COUNT)
tariffEvaluator.withInertia(0.7).withRationality(0.99) .withPreferredContractDuration(14); tariffEvaluator.initializeInconvenienceFactors(0.0, 0.01, 0.0, 0.0);
.withPreferredContractDuration(subStructure.getExpectedDuration()) .withInconvenienceWeight(subStructure.getInconvenienceWeight()) .withRationality(subStructure.getLogitChoiceRationality()) .withEvaluateAllTariffs(true); evaluator.initializeCostFactors(subStructure.getExpMeanPriceWeight(),
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; }