Deborah.Miriam.ReweightingBundle
Deborah.Miriam.ReweightingBundle.ReweightingSolverBundle — Typestruct ReweightingSolverBundle{T}Structure to hold multiple Deborah.Miriam.Reweighting.ReweightingSolver instances along with metadata for ensemble tagging and configuration tracking.
Fields
solvers::Vector{Reweighting.ReweightingSolver{T}}: Vector ofReweighting.ReweightingSolver{T}for each ensemble arraytags::Vector{String}: Identifier tags for each ensemble (e.g.,"Y_tr","Y_bc","Y_ul")conf_nums::Vector{Vector{Int}}: Flattened configuration numbers per solver, useful for traceability
Deborah.Miriam.ReweightingBundle.ReweightingSolverBundle — MethodReweightingSolverBundle(
bundle::Ensemble.EnsembleArrayBundle{T},
maxiter::Int,
eps::T
) where T -> ReweightingSolverBundle{T}Construct a ReweightingSolverBundle by initializing a solver for each ensemble array.
Arguments
bundle::Ensemble.EnsembleArrayBundle{T}: Structure containing ensemble arrays and tagsmaxiter::Int: Maximum number of iterations for solver convergenceeps::T: Convergence tolerance
Returns
- A
ReweightingSolverBundlecontaining initialized solvers and configuration indices
Deborah.Miriam.ReweightingBundle.calc_f_all! — Functioncalc_f_all!(
rw_bundle::ReweightingSolverBundle,
info_file::String,
jobid::Union{Nothing, String}=nothing
) -> NothingCompute free energy differences $f$ for all solvers in the bundle.
Arguments
rw_bundle::ReweightingSolverBundle: A bundle of reweighting solvers (each with a different trace source).info_file::String: Path to theTOMLfile where solver summary info is saved.jobid::Union{Nothing, String}: Optional job ID for logging context.
Behavior
- Iterates over each solver in the bundle and calls
Deborah.Miriam.Reweighting.calc_f!with its corresponding tag. - Logs progress and timing info for each tag.
Returns
Nothing; results are written toTOMLand stored in-place in each solver.
Deborah.Miriam.ReweightingBundle.calc_w_all! — Methodcalc_w_all!(
rw_bundle::ReweightingSolverBundle,
paramT::Ensemble.Params
) -> NothingCompute reweighting weights $w_i(\kappa_T)$ for all solvers in the bundle using the same target parameter set.
Arguments
rw_bundle::ReweightingSolverBundle: A bundle of reweighting solvers containing ensemble data.paramT::Ensemble.Params: Target simulation parameters (including $\kappa_T$) to compute weights against.
Behavior
- Calls
Deborah.Miriam.Reweighting.calc_w!on each solver in the bundle using the providedparamT.
Returns
Nothing; each solver's internal weight vector is updated in-place.