[freeciv-ai] Re: (PR#10203) Greedy CM algorithm
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10203 >
Per I. Mathisen wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=10203 >
> On Thu, 23 Sep 2004, Benoit Hudson wrote:
>>>What user input does a CM (citizen management) algorithm need?
>>>Only two types of input:
>>>- relative weights (called hereafter "weights")
>>>- absolute minimums (called hereafter "conditions")
>>>All other kinds of restrictions can be broken down into these two.
>>>Want no unrest? Find the lowest number of luxuries that we need. Want
>>>to celebrate? Again, find the lowest number of luxuries that we need.
>>Not quite: the happy/disorder constraints depend both on lux surplus
>>and on the number of workers in fields.
> Do you mean units in the field and size of city here? In either case, we
> can precalculate the number of luxuries needed before starting the
I believe the amount of luxury required depends on the number of
specialists versus workers. Specialists do not have "happiness" so
happy and unhappy workers are not counted up until after the specialists
have been removed from the pool.