Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Public API index

This curated index covers the names exported from the top-level lcm and lcm.solvers namespaces. It is a navigation-completeness check, not an exhaustive semantic specification: submodule-only public objects, constructor fields, behavioral contracts, and the correctness of destinations require page-specific documentation and tests.

Model and economic declarations

Public nameCanonical documentation
lcm.ModelModel assembly and execution
lcm.RegimeGeneral regime
lcm.ConsumptionSavingsRegimeOne liquid margin
lcm.NestedConsumptionSavingsRegimeLiquid plus outer margin
lcm.LiquidMarginLiquid roles
lcm.OuterContinuousMarginOuter roles
lcm.NetOfAdjustmentCostResources composition
lcm.post_decision_lower_boundCheckable borrowing bound
lcm.outer_unchangedIdentity no-adjustment sentinel
lcm.cash_on_hand_with_subsidySupported case-piece fixed form
lcm.liquid_law_from_resourcesConventional liquid law
lcm.liquid_law_from_savingsConventional savings-written liquid law
lcm.ExtremeValueTasteShocksEV1 discrete-choice shocks

Grids, categories, and processes

Public nameCanonical documentation
lcm.AgeGridLifecycle grid
lcm.categoricalCategory declaration
lcm.DiscreteGridDiscrete outcome grid
lcm.LinSpacedGridLinear grid
lcm.LogSpacedGridLog grid
lcm.IrregSpacedGridExplicit irregular grid
lcm.GridBreakpointPiecewise-grid boundary
lcm.PiecewiseLinSpacedGridPiecewise linear grid
lcm.PiecewiseLogSpacedGridPiecewise log grid
lcm.UniformIIDProcessIID uniform process
lcm.NormalIIDProcessIID normal process
lcm.LogNormalIIDProcessIID log-normal process
lcm.NormalMixtureIIDProcessIID normal mixture
lcm.TauchenAR1ProcessTauchen AR(1)
lcm.RouwenhorstAR1ProcessRouwenhorst AR(1)
lcm.TauchenNormalMixtureAR1ProcessMixture AR(1)
lcm.StateConditionedState-conditioned process parameters

Transitions, phases, and structured declarations

Public nameCanonical documentation
lcm.MarkovTransitionStochastic transition wrapper
lcm.JointTransitionShared-draw joint law
lcm.fixed_transitionIdentity law
lcm.AgeSpecializedFunctionAge-varying function
lcm.AgeSpecializedGridAge-varying grid
lcm.PhasedSolve/simulate variants
lcm.ConditionStructured Boolean expression
lcm.refNamed reference
lcm.impliesConditional requirement
lcm.case_boundaryStructured case boundary
lcm.piecePiece decorator
lcm.smooth_helperReviewed smooth-helper attestation
lcm.affine_breakpointSchedule breakpoint
lcm.piecewise_affinePiecewise-affine schedule

Preferences, results, and persistence

Public nameCanonical documentation
lcm.LinearAggregatorLinear Koopmans form
lcm.CESAggregatorCES Koopmans form
lcm.CertaintyEquivalentCertainty-equivalent contract
lcm.LinearExpectationLinear lottery reduction
lcm.PowerMeanPower-mean reduction
lcm.QuasiArithmeticMeanQuasi-arithmetic reduction
lcm.SimulationResultDeferred simulation result
lcm.save_solutionSave a complete solution
lcm.load_solutionLoad a complete solution lazily
lcm.load_legacy_solutionRead the old value-only format
lcm.SolveSnapshotSolve diagnostic snapshot
lcm.SimulateSnapshotSimulation diagnostic snapshot
lcm.load_snapshotLoad diagnostic snapshot
lcm.__version__Installed pylcm version

Explicit public submodule surfaces

Most user-facing names are re-exported from lcm. These deliberately public submodule surfaces remain outside that top-level namespace:

Public nameCanonical documentation
lcm.params.MappingLeafMapping parameter leaf
lcm.params.SequenceLeafSequence parameter leaf
lcm.params.UserMappingLeafUser mapping parameter leaf
lcm.params.UserSequenceLeafSequence parameter leaf
lcm.params.as_leafExplicit parameter-leaf wrapper
lcm.koopmans_aggregation.KoopmansAggregatorKoopmans-form base contract
lcm.solver_api.ResultRetentionSolution result retention
lcm.solver_api.LoadStatePer-entry materialization state
lcm.solver_api.ValueStoreLazy addressed value store
lcm.solver_api.ArtifactKeyVersioned artifact identity
lcm.solver_api.ArtifactRefPeriod/regime artifact address
lcm.solver_api.ArtifactStoreImmutable artifact store
lcm.solver_api.ArtifactChannelArtifact semantic channel
lcm.solver_api.ArtifactDescriptorDescriptive persisted schema
lcm.solver_api.ArtifactAuthorityModel-built artifact authority
lcm.solver_api.TreePathStable PyTree leaf/container path
lcm.solver_api.AxisRoleMathematical artifact-axis role
lcm.solver_api.AxisDescriptorDescriptive named artifact axis
lcm.solver_api.AxisAuthorityModel-owned axis and coordinates
lcm.solver_api.LeafDescriptorDescriptive numerical leaf schema
lcm.solver_api.LeafAuthorityModel-owned numerical leaf schema
lcm.solver_api.CategoryDomainExact categorical labels and codes
lcm.solver_api.PersistencePolicyPer-artifact persistence policy
lcm.solver_api.KernelOutputWhat a period kernel returns
lcm.solver_api.OmissionReasonRecorded reason for absence
lcm.solver_api.SolutionMetadataLabelled-solution metadata
lcm.solver_api.SolutionResultLabelled solution result
lcm.solver_api.SolutionSourceIn-memory or persisted origin
lcm.solver_api.ValueArraySchemaNamed value-array shape/dtype
lcm.solver_api.SIMULATION_POLICYReplay-policy schema key
lcm.solver_api.DISSOLUTION_FLAGDissolution-flag schema key
lcm.solver_api.EGM_CONTINUATIONContinuation schema key
lcm.solver_api.SOLVER_DIAGNOSTICSDiagnostics schema key
lcm.solver_api.ContinuationArtifactKeyed rolling-continuation protocol
lcm.solver_api.ReplayModeHow a regime’s decision is obtained
lcm.solver_api.ReplayRouteA regime’s declared replay route
lcm.solver_api.ExecutableReplayRouteExternal replay implementation
lcm.solver_api.DeclaredReplayReplay declared without a route
lcm.solver_api.ReplayReaderJAX-transformable replay reader
lcm.solver_api.ReplayRouteSnapshotValidated immutable replay snapshot
lcm.solver_api.ReplayModelContextPeriod-specific route model view
lcm.solver_api.ReplayRouteRequirementsExact replay artifact dependencies
lcm.solver_api.SimulationBuildContextModel-owned replay build context
lcm.solver_api.ActionOutputNamed replayed action arrays
lcm.solver_api.SolverIdentityExact plugin compatibility identity
lcm.solver_api.ReplayRouteIdentityExact replay compatibility identity
lcm.solver_api.PYLCM_VERSIONExact pylcm compatibility version
lcm.solver_api.SOLVER_API_VERSIONPublic solver-interface version
lcm.solver_api.SOLUTION_SCHEMA_VERSIONLabelled-result schema version
lcm.solver_api.SOLUTION_FORMAT_VERSIONDurable archive format version

Collective regimes and value-dependent choice

Public nameCanonical documentation
lcm.CollectiveUtilityOne utility per stakeholder, one action
lcm.ParetoObjectiveWeighted household objective
lcm.ValueDependentConstraintConstraint that reads stakeholder values
lcm.ValueDependentTransitionGated transition to a target regime
lcm.StakeholderRouteOne source stakeholder’s route across it
lcm.ProjectedRegimeValueAnother regime’s value, projected

Solvers and configurations

Public nameCanonical documentation
lcm.solvers.GridSearchGeneral grid search
lcm.solvers.EGMPlain endogenous-grid method
lcm.solvers.DCEGMGeneral-resources EGM
lcm.solvers.NEGMNested DCEGM
lcm.solvers.NBEGMDeclared non-convex-budget EGM
lcm.solvers.NNBEGMNested NBEGM
lcm.solvers.EnvelopeConfigDCEGM envelope union
lcm.solvers.ExactEnvelopeCertified envelope
lcm.solvers.FUESEnvelopeFUES configuration
lcm.solvers.RFCEnvelopeRFC configuration
lcm.solvers.LTMEnvelopeLTM configuration
lcm.solvers.MSSEnvelopeMSS configuration
lcm.solvers.OuterSearchOuter-search marker
lcm.solvers.FiniteOuterGridFinite search
lcm.solvers.AdaptiveOuterMeshAdaptive continuous search
lcm.solvers.OuterBranchAggregatorBranch-aggregation marker
lcm.solvers.DeterministicOuterMaximumHard maximum
lcm.solvers.UniformObservedFixedCostAnalytic fixed-cost integration
lcm.solvers.BranchAggregateResultAggregation output

The remaining exported solver infrastructure is the out-of-tree solver surface: a solver can be written against these names without importing anything private. Persistence, durable identity, executable replay, and the exact-version conformance contract are documented in Custom solvers.

Public nameCanonical documentation
lcm.solvers.SolverSolver base contract
lcm.solvers.OneMarginSolverOne-liquid-margin marker
lcm.solvers.TwoMarginSolverNested-margin marker
lcm.solvers.SolverBuildContextPer-regime build context
lcm.solvers.SolutionKernelsPer-period kernel bundle
lcm.solvers.PeriodKernelOne period’s execution protocol
lcm.solvers.CoreProgramOne declared compiled program
lcm.solvers.CoreBuildContextArgument-builder input
lcm.solvers.CoreExecutionRequirementsDeclared execution requirements
lcm.solvers.TargetValueAccessOne declared stored-value read
lcm.solvers.ValueArtifactAddressStored value a core reads
lcm.solvers.ValueArtifactKindRegime value or gated continuation
lcm.solvers.ValueConsumerAddressArgument leaf receiving a value
lcm.solvers.ValueInputChannelCore argument channel for values
lcm.solvers.CoreExecutionDispositionPlanned or deliberately dense
lcm.solvers.ProgramScopeRetention scope of a program
lcm.solvers.StreamableProductAxisDeclared streamable action axis
lcm.solvers.ReductionSemanticsReduction a streamed axis performs
lcm.solvers.OutputRoleValue and dissolution-flag roles
lcm.solvers.StateAxesLeadingParametrized output-placement role
lcm.solvers.StateActionSpacePer-period state and action arrays
lcm.solvers.KernelOutputWhat a period kernel returns
lcm.solvers.ArtifactKeyVersioned artifact identity
lcm.solvers.ArtifactRefPeriod/regime artifact address
lcm.solvers.ArtifactStoreAddressed artifact store
lcm.solvers.ArtifactChannelArtifact semantic channel
lcm.solvers.ArtifactDescriptorDescriptive persisted schema
lcm.solvers.ArtifactAuthorityModel-built artifact authority
lcm.solvers.TreePathStable PyTree leaf/container path
lcm.solvers.AxisRoleMathematical artifact-axis role
lcm.solvers.AxisDescriptorDescriptive named artifact axis
lcm.solvers.AxisAuthorityModel-owned axis and coordinates
lcm.solvers.LeafDescriptorDescriptive numerical leaf schema
lcm.solvers.LeafAuthorityModel-owned numerical leaf schema
lcm.solvers.CategoryDomainExact categorical labels and codes
lcm.solvers.PersistencePolicyPer-artifact persistence policy
lcm.solvers.EGM_CONTINUATIONContinuation schema key
lcm.solvers.SIMULATION_POLICYReplay-policy schema key
lcm.solvers.DISSOLUTION_FLAGDissolution-flag schema key
lcm.solvers.SOLVER_DIAGNOSTICSDiagnostics schema key
lcm.solvers.ContinuationArtifactKeyed rolling-continuation protocol
lcm.solvers.ContinuationSpecTemplate and key of a continuation
lcm.solvers.EGMContinuationSpecEGM carry template and layout
lcm.solvers.EGMContinuationLayoutHow a reading parent interprets rows
lcm.solvers.ReplayModeHow a regime’s decision is obtained
lcm.solvers.ReplayRouteA regime’s declared replay route
lcm.solvers.ExecutableReplayRouteExternal replay implementation
lcm.solvers.DeclaredReplayReplay declared without a route
lcm.solvers.ReplayReaderJAX-transformable replay reader
lcm.solvers.ReplayRouteSnapshotValidated immutable replay snapshot
lcm.solvers.ReplayModelContextPeriod-specific route model view
lcm.solvers.ReplayRouteRequirementsExact replay artifact dependencies
lcm.solvers.SimulationBuildContextModel-owned replay build context
lcm.solvers.ActionOutputNamed replayed action arrays
lcm.solvers.SolverIdentityExact plugin compatibility identity
lcm.solvers.ReplayRouteIdentityExact replay compatibility identity
lcm.solvers.PYLCM_VERSIONExact pylcm compatibility version
lcm.solvers.SOLVER_API_VERSIONPublic solver-interface version
lcm.solvers.SOLUTION_SCHEMA_VERSIONLabelled-result schema version
lcm.solvers.SOLUTION_FORMAT_VERSIONDurable archive format version
lcm.solvers.LoadStatePer-entry materialization state
lcm.solvers.ValueStoreLazy addressed value store
lcm.solvers.ResultRetentionSolution result retention
lcm.solvers.OmissionReasonRecorded reason for absence
lcm.solvers.SolutionMetadataLabelled-solution metadata
lcm.solvers.SolutionResultComplete labelled solution
lcm.solvers.SolutionSourceIn-memory or persisted origin
lcm.solvers.ValueArraySchemaNamed value-array shape/dtype
lcm.solvers.period_to_continuation_targetTarget a period carries into
lcm.solvers.target_period_gridA target’s grid in one period
lcm.solvers.union_free_paramsFree params of a regime and targets
lcm.solvers.union_fixed_paramsFixed params of a regime and targets