This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Calculating net material production


I'm working on a new version of ai_plan_research.  So far, I've got a
fairly good idea of how to measure the worth of an advance by what units
it's required for and how it affects existing units*, but the key to
solving Elijah's problem with focusing advances is that the calculation
has to take into consideration the resources required to achieve that
advance.

I figure that the best way to do this is to look at the materials used
to gain the advance and the number of RP's required, calculate the rate
at which they're being produced (or at least being fed into the
treasury), and calculate the number of turns required to achieve that
advance.  Then I divide the calculated worth of the advance by the time
required.

Is there any code already in place to track such statistics?  Or will I
have to perform deeper code surgery to do this?


* So far, the weighting of an advance by new units it enables versus
existing units it affects is haphazard at best, but I hope to fix this
later (or at least make it fairly easy for someone else to fix).

---
Lincoln Peters
<sampln@sbcglobal.net>

Garbage In, Gospel Out


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]