Complete.Org: Mailing Lists: Archives: freeciv-ai: September 2004:
[freeciv-ai] Re: (PR#10203) Greedy CM algorithm
Home

[freeciv-ai] Re: (PR#10203) Greedy CM algorithm

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [freeciv-ai] Re: (PR#10203) Greedy CM algorithm
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Sep 2004 10:22:52 -0700
Reply-to: rt@xxxxxxxxxxx

<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
> algorithm.

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.

jason




[Prev in Thread] Current Thread [Next in Thread]