Class ActivityAlignmentV2
java.lang.Object
simpaths.model.ActivityAlignmentV2
- All Implemented Interfaces:
IEvaluation
ActivityAlignmentV2 calibrates the labor supply model by adjusting utility coefficients
so that the simulated employment rate for a specific benefit-unit subgroup matches its target.
Uses OccupancyExtended flags and the atRiskOfWork()/getAdultChildFlag() flow for classification.
-
Constructor Summary
ConstructorsConstructorDescriptionActivityAlignmentV2(Set<BenefitUnit> benefitUnits, microsim.data.MultiKeyCoefficientMap coefficientMap, String[] regressorsToModify, OccupancyExtended subgroupFlag) Constructor accepting an OccupancyExtended flag to specify subgroup. -
Method Summary
Modifier and TypeMethodDescriptiondoubleevaluate(double[] args) Performs one evaluation: adjusts coefficients by args[0], runs the simulation update, and returns (target - simulated).voidprintDiagnostics(double baseAdjustment, double bound, double epsFunction)
-
Constructor Details
-
ActivityAlignmentV2
public ActivityAlignmentV2(Set<BenefitUnit> benefitUnits, microsim.data.MultiKeyCoefficientMap coefficientMap, String[] regressorsToModify, OccupancyExtended subgroupFlag) Constructor accepting an OccupancyExtended flag to specify subgroup.- Parameters:
benefitUnits- all benefit units in the simulationcoefficientMap- map of utility coefficientsregressorsToModify- array of coefficient keys to adjustsubgroupFlag- extended occupancy flag for subgroup classification
-
-
Method Details
-
evaluate
public double evaluate(double[] args) Performs one evaluation: adjusts coefficients by args[0], runs the simulation update, and returns (target - simulated).- Specified by:
evaluatein interfaceIEvaluation
-
printDiagnostics
public void printDiagnostics(double baseAdjustment, double bound, double epsFunction)
-