0

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.

5
  • 3
    Use pseodocode I guess would fit your problem. Pseodocode is not language dependent. Mar 20 at 15:07
  • 1
    What a journal will publish is up to them. Ask them if you have a target.
    – Buffy
    Mar 20 at 15:09
  • @buffy we are aiming for ICAIES
    – Sanx
    Mar 20 at 15:52
  • @user8469759 Okay, and just for the info, the class contains some functions which keep operating until the target is achieved
    – Sanx
    Mar 20 at 15:54
  • Check their author information and some of the papers they publish. If in doubt ask an editor.
    – Buffy
    Mar 20 at 16:13
2

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.

3
  • I went looking for an actual pseudocode style guide and couldn't find one. So if anyone knows of one, I'd like to have it.
    – user133933
    Mar 20 at 17:48
  • 1
    I doubt that this is exactly what you want, but Edsger Dijkstra invented a simple programming language that was, in effect, a pseudocode sufficient for expressing algorithms. His papers were written with that "language". David Gries, adopted it as well. His book The Science of Programming uses it throughout.
    – Buffy
    Mar 20 at 19:52
  • 1
    I asked the editor, took a close look at my class functions and turns out Pseudo code is correct! tbh I should have thought about this earlier and wasted days forming equations out of the operations Im performing, so Thanks all @Buffy @Libor!
    – Sanx
    Mar 21 at 5:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.