Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Calculate easiest way to 'level results'

by Scott7477 (Chaplain)
on Sep 19, 2007 at 17:11 UTC ( #639931=note: print w/replies, xml ) Need Help??


in reply to Calculate easiest way to 'level results'

If I understand your explanation of the requirement, what you have here is what can be referred to as an optimization problem. You want to minimize the amount of time needed to purchase an object subject to the cost constraints, in this case the amount of time needed to accumulate mana and spells. You can find the minimal time using linear programming. The link is to the Wikipedia entry on the subject which seems to be aimed at folks with fairly advanced knowledge of the subject, but I checked a couple of the external links, which seemed to explain the basics. A cursory look at CPAN didn't turn up any LP modules, which surprised me. It's an interesting problem you've posed, but I've not got the time to work it out this morning:) Hope this helps...
  • Comment on Re: Calculate easiest way to 'level results'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://639931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2021-06-23 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (121 votes). Check out past polls.

    Notices?