Package jline.solvers.env
Class SolverEnv
-
- All Implemented Interfaces:
public class SolverEnv extends EnsembleSolver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSolverEnv.EnvGeneratorResultContainer class holding the generator matrices and related data structures for both stage-specific and random environment transitions. Used to encapsulate results from environment-aware model generation.
-
Field Summary
Fields Modifier and Type Field Description protected Array<Network>ensembleprotected Array<NetworkSolver>solversprotected Map<Integer, Map<Integer, SolverResult>>resultsprotected ExecutorServicethreadPoolprotected intnumThreadspublic Modelmodelpublic Stringnamepublic SolverOptionsoptionspublic SolverResultresultpublic booleanenableCheckspublic Randomrandom
-
Constructor Summary
Constructors Constructor Description SolverEnv(Env renv, Array<NetworkSolver> solvers)SolverEnv(Env renv, Array<NetworkSolver> solvers, SolverOptions options)
-
Method Summary
Modifier and Type Method Description static FeatureSetgetFeatureSet()booleansupports(Network model)Checks if this solver supports the given network model. static SolverOptionsdefaultOptions()booleanconverged(int it)voidinit()voidpre(int it)voidpost(int it)voidfinish()StringgetName()Returns the name identifier of this solver. SolverEnv.EnvGeneratorResultgetGenerator()voidgetAvg()AvgTablegetEnsembleAvg()SolverResultanalyze(int it, int e)CTMCResultrunAnalyzerByCTMC()final NetworkAvgTablegetAvgTable()final NetworkAvgTablegetAvgTable(SolverOptions options, boolean keepDisabled)final NetworkAvgTablegetAvgTable(SolverOptions options)voidprintAvgTable(boolean keepDisabled)Prints the average metrics table for all stations and job classes. voidprintAvgTable()voidrunAnalyzer()Executes the solver algorithm to analyze the model. static SolverEnv.Compression_resultctmc_courtois(Matrix Q, MatrixCell MS, double q)static SolverEnv.Compression_resultctmc_courtois(Matrix Q, MatrixCell MS)voidsetStateDepMethod(String method)voidsetNewMethod(boolean newMethod)voidsetCompression(boolean compression)voidsetRef(int i)-
Methods inherited from class jline.solvers.EnsembleSolver
ensembleAvg, getNumThreads, getNumberOfModels, iterate, numThreads, numberOfModels, printEnsembleAvgTables, setNumThreads -
Methods inherited from class jline.solvers.Solver
getOptions, getResults, hasResults, isJavaAvailable, isValidOption, listValidOptions, parseOptions, parseOptions, reset, resetRandomGeneratorSeed, runAnalyzerChecks, setChecks, setOptions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SolverEnv
SolverEnv(Env renv, Array<NetworkSolver> solvers)
-
SolverEnv
SolverEnv(Env renv, Array<NetworkSolver> solvers, SolverOptions options)
-
-
Method Detail
-
getFeatureSet
static FeatureSet getFeatureSet()
-
supports
boolean supports(Network model)
Checks if this solver supports the given network model. Default implementation returns true; subclasses should override to provide specific feature validation.
- Parameters:
model- the network model to check- Returns:
true if the model is supported, false otherwise
-
defaultOptions
static SolverOptions defaultOptions()
-
converged
boolean converged(int it)
-
init
void init()
-
pre
void pre(int it)
-
post
void post(int it)
-
finish
void finish()
-
getGenerator
SolverEnv.EnvGeneratorResult getGenerator()
-
getAvg
void getAvg()
-
getEnsembleAvg
AvgTable getEnsembleAvg()
-
analyze
SolverResult analyze(int it, int e)
-
runAnalyzerByCTMC
CTMCResult runAnalyzerByCTMC()
-
getAvgTable
final NetworkAvgTable getAvgTable()
-
getAvgTable
final NetworkAvgTable getAvgTable(SolverOptions options, boolean keepDisabled)
-
getAvgTable
final NetworkAvgTable getAvgTable(SolverOptions options)
-
printAvgTable
void printAvgTable(boolean keepDisabled)
Prints the average metrics table for all stations and job classes.
- Parameters:
keepDisabled- If true, includes disabled/inactive entries (0-valued metrics).
-
printAvgTable
void printAvgTable()
-
runAnalyzer
void runAnalyzer()
Executes the solver algorithm to analyze the model. This abstract method must be implemented by concrete solver classes.
-
ctmc_courtois
static SolverEnv.Compression_result ctmc_courtois(Matrix Q, MatrixCell MS, double q)
-
ctmc_courtois
static SolverEnv.Compression_result ctmc_courtois(Matrix Q, MatrixCell MS)
-
setStateDepMethod
void setStateDepMethod(String method)
-
setNewMethod
void setNewMethod(boolean newMethod)
-
setCompression
void setCompression(boolean compression)
-
setRef
void setRef(int i)
-
-
-
-