Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Calculate easiest way to 'level results'

by Scott7477 (Chaplain)
on Sep 19, 2007 at 17:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://639931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-24 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found