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.