Class LinearSystem
java.lang.Object
solvers.linearSystem.LinearSystem
- Direct Known Subclasses:
BTFLinearSystem, SimpleLinearSystem
This abstract class provides the interface for the Linear System which is used by the CoMoM algorithm.
- Author:
- Jack Bradshaw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CoMoMBasisBasis for the modelprotected QNModelThe model under consideration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal voidinitialiseForClass(PopulationVector current_N, int current_class) Initialises the linear system ready for iteration on current_class at the specified populationprotected abstract voidinitialiseMatricesForClass(PopulationVector current_N, int current_class) Initialises the matrices of the linear system ready for iteration on current_class at the specified populationabstract voidsolve()Solve the linear system in its current configurationabstract voidupdate(int current_class_population) Updates the N_l values in the linear system
-
Field Details
-
basis
Basis for the model -
qnm
The model under consideration.
-
-
Constructor Details
-
LinearSystem
Constructor- Parameters:
qnm- The model under consideration.basis- Basis for the model- Throws:
InternalErrorException
-
-
Method Details
-
computePerformanceMeasures
- Throws:
InternalErrorException
-
update
public abstract void update(int current_class_population) Updates the N_l values in the linear system- Parameters:
current_class_population- The population in the current class under consideration
-
solve
public abstract void solve() throws OperationNotSupportedException, InconsistentLinearSystemException, InternalErrorException, BTFMatrixErrorExceptionSolve the linear system in its current configuration -
initialiseForClass
public final void initialiseForClass(PopulationVector current_N, int current_class) throws InternalErrorException, OperationNotSupportedException, BTFMatrixErrorException, InconsistentLinearSystemException Initialises the linear system ready for iteration on current_class at the specified population- Parameters:
current_N- The current population vectorcurrent_class- The current class under consideration- Throws:
InternalErrorExceptionOperationNotSupportedExceptionBTFMatrixErrorExceptionInconsistentLinearSystemException
-
initialiseMatricesForClass
protected abstract void initialiseMatricesForClass(PopulationVector current_N, int current_class) throws BTFMatrixErrorException, InternalErrorException, InconsistentLinearSystemException, OperationNotSupportedException Initialises the matrices of the linear system ready for iteration on current_class at the specified population- Parameters:
current_N- The current population vectorcurrent_class- The current class under consideration- Throws:
BTFMatrixErrorExceptionInternalErrorExceptionInconsistentLinearSystemExceptionOperationNotSupportedException
-