Class ActivityAlignmentV2

java.lang.Object
simpaths.model.ActivityAlignmentV2
All Implemented Interfaces:
IEvaluation

public class ActivityAlignmentV2 extends Object implements 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 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 simulation
      coefficientMap - map of utility coefficients
      regressorsToModify - array of coefficient keys to adjust
      subgroupFlag - 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:
      evaluate in interface IEvaluation
    • printDiagnostics

      public void printDiagnostics(double baseAdjustment, double bound, double epsFunction)