Class SolverPosterior

  • All Implemented Interfaces:

    
    public class SolverPosterior
    extends EnsembleSolver
                        

    Posterior solver for Bayesian-style parameter uncertainty analysis.

    This solver wraps another solver and handles Prior distributions by expanding the model into a family of networks, one for each alternative in the Prior. Results are aggregated using prior-weighted expectations.

    Usage:

    Prior prior = new Prior(Arrays.asList(new Exp(1.0), new Exp(2.0)), new double[]{0.6, 0.4});
    queue.setService(jobClass, prior);
    SolverPosterior solver = new SolverPosterior(model, m -> new SolverMVA(m));
    AvgTable avgTable = solver.getAvgTable();
    
    • Constructor Detail

      • SolverPosterior

        SolverPosterior(Network model, SolverPosterior.SolverFactory solverFactory)
        Creates a SolverPosterior with the given model and solver factory.
        Parameters:
        model - the network model containing Prior distributions
        solverFactory - function to create solvers for each alternative
      • SolverPosterior

        SolverPosterior(Network model, SolverPosterior.SolverFactory solverFactory, SolverOptions options)
        Creates a SolverPosterior with solver options.
        Parameters:
        model - the network model
        solverFactory - function to create solvers
        options - solver options