Class SimpleLinearSystem
java.lang.Object
solvers.linearSystem.LinearSystem
solvers.linearSystem.simple.SimpleLinearSystem
This class extends the LinearSystem class to implement the linear system for
the simple CoMoMimplementation.
- Author:
- Jack Bradshaw
-
Field Summary
Fields inherited from class LinearSystem
basis, qnm -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialiseMatricesForClass(PopulationVector current_N, int current_class) Initialises the matrices of the linear system ready for iteration on current_class at the specified populationMultiply methods for testing purposesvoidsolve()Solve the linear system in its current configurationvoidupdate(int current_class_population) Updates the N_l values in the linear systemMethods inherited from class LinearSystem
computePerformanceMeasures, initialiseForClass
-
Constructor Details
-
SimpleLinearSystem
public SimpleLinearSystem(QNModel qnm, CoMoMBasis basis, int num_threads) throws InternalErrorException - Throws:
InternalErrorException
-
-
Method Details
-
update
public void update(int current_class_population) Description copied from class:LinearSystemUpdates the N_l values in the linear system- Specified by:
updatein classLinearSystem- Parameters:
current_class_population- The population in the current class under consideration
-
solve
public void solve() throws OperationNotSupportedException, InconsistentLinearSystemException, InternalErrorException, BTFMatrixErrorExceptionDescription copied from class:LinearSystemSolve the linear system in its current configuration- Specified by:
solvein classLinearSystem- Throws:
OperationNotSupportedExceptionInconsistentLinearSystemExceptionInternalErrorExceptionBTFMatrixErrorException
-
initialiseMatricesForClass
public void initialiseMatricesForClass(PopulationVector current_N, int current_class) throws InternalErrorException, BTFMatrixErrorException, InconsistentLinearSystemException, OperationNotSupportedException Description copied from class:LinearSystemInitialises the matrices of the linear system ready for iteration on current_class at the specified population- Specified by:
initialiseMatricesForClassin classLinearSystem- Parameters:
current_N- The current population vectorcurrent_class- The current class under consideration- Throws:
InternalErrorExceptionBTFMatrixErrorExceptionInconsistentLinearSystemExceptionOperationNotSupportedException
-
multiplyrhs
Multiply methods for testing purposes- Throws:
BTFMatrixErrorException
-
multiplylhs
- Throws:
BTFMatrixErrorException
-