#include <indigox/algorithm/electron_assignment/assigner.hpp>
◆ AssignerAlgorithm
Enum of the various electron assignment optimisation algorithms.
Enumerator |
---|
LocalOptimisation | The local optimisation method.
|
AStar | An A* path finding method.
|
FPT | A dynamic programming method.
|
◆ IXElectronAssigner()
◆ ApplyAssignment()
bool ApplyAssignment |
( |
size_t |
idx | ) |
|
|
inline |
Apply the given assignment.
A number of situations will result in unsuscessful application of an assignment. If the requested index is outside the range of the available assignments, if the associated molecule is no longer valid, if any of the expected atom or bond instances are no longer valid. In the later cases, the assignment may be partially applied.
- Parameters
-
idx | the index number of the assignment to apply. |
- Returns
- if the assignment application was successful or not.
◆ GetAssignmentGraph()
Get the AssignmentGraph used by the assignment algorithm.
- Returns
- the AssignmentGraph used by the algorithm.
◆ GetOptimalCount()
size_t GetOptimalCount |
( |
| ) |
const |
|
inline |
◆ GetOptimisedScore()
score_t GetOptimisedScore |
( |
| ) |
const |
|
inline |
◆ LoadScoreTable()
Load the current score file.
Loads the current set score file. First attempts to load a path relative to the data directory. If that fails, attempts to load an absolute path.
◆ Run()
Run the electron assignment.
Initalises and runs the assignment algorithm based on the current settings of both the IXElectronAssigner and the algorithm to run. Before running, performs a sanity check to ensure that the molecule meets the allowed elements rules.
- Returns
- the number of electron assignments found.
◆ CreateElectronAssigner
Friendship allows creation of electron assigner instances.
- Parameters
-
m | the molecule this electron assigner is for. |
- Returns
- a new ElectronAssigner.
The documentation for this class was generated from the following file: