Can we include a class or mathematical representation of a class coded in Python on a research paper/case study in field of energy I'm writing a paper based on energy optimisation by creating discharge profile based on demand. So i wrote an algo which (not the most efficient) but works great. The problem is the algorithm is based on a class based function and has variables which needs to be updated and one of which is used as the output.
Am i supposed to show the mathematical representation of the algorithm? and if i can, how am i supposed to show loops and iterations? sorry but this is my first paper.
The comment about pseudocode was correct.
Here's one example of how to pseudocode an iterative algorithm without going into a lot of implementation details.
Here's another example from a well known iterative algorithm
I've seen other styles that are just as good - whatever you're comfortable writing that someone who's never seen your algorithm can understand is fine.