I have no idea if this question is correct for this forum, but I figured I'd give it a shot. I am trying to figure out the best order to execute skills in a game (I know). Anyway here is the skill information:

The Rank column indicates the priority of the skill (i.e. if it is off cool down the lowest rank (highest priority) skill should be run. What kind of math would be required to arrange these skills such that the skills are executed in the most efficient way? It's probably really simple and I will try to come up with something, but maybe one of you guys out there might find it interesting...?

Note: Each skill takes 'x' duration to execute (ApproximateDuration) which should be factored in.

Edit:

The following assumption(s) can be made at the beginning:

All of the skills will be off cooldown (usable).

Here is how I would start:

Select all skills that are off cooldown and pull the lowest rank (highest priority) skill and run it.

It has now executed Skill 1 which took 2 seconds to execute. Our total running time is 2 seconds and the cooldown on Skill 1 begins.

Select all skills that are off cooldown and pull the lowest rank (highest priority) skill and run it.

It has now executed Skill 2 which took 3.5 seconds to execute. Our total running time is 5.5 seconds and the cooldown on Skill 2 begins. Skill 1's cooldown is now at 38 seconds.

Maybe you need to describe the rules in with some examples.
–
Emmad KareemSep 28 '12 at 20:23

Over 15,540 seconds, you can execute rank 1 370 times, rank 2 840 times, and rank 3 777 times. Then, it crucially depends on how you value each rank. Looks like spamming rank 2 is your best bet in the long run, unless you value rank 1 more than twice rank 2.
–
LegendreSep 28 '12 at 20:26

There needs to be minimal pauses between skill uses. I can't afford to spam Skill 2 because that will leave a large gap in between skill uses.
–
user43026Sep 28 '12 at 20:31