How-to: Add Numerical Algorithms
To add a new numerical algorithm called “my_algorithm
” to the simulation system,
perform the following steps:
- Create a new sub-directory called
my_algorithm
inside the directory:csle/simulation-system/libs/csle-agents/src/csle_agents/agents/
- Implement the algorithm in a file called
my_algorithm.py
in the directory:csle/simulation-system/libs/csle-agents/src/csle_agents/agents/my_agent
The implementation should be a Python class called
MyAlgorithm
that inherits from the classBaseAgent
, which is defined in the file:csle/simulation-system/libs/csle-agents/src/csle_agents/agents/base/base_agent.py
- Add an example of how to use the algorithm to the following folder:
csle/examples
- Previous
- Next