Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: Comments on CMA 2.6
Home

[Freeciv-Dev] Re: Comments on CMA 2.6

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Comments on CMA 2.6
From: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Date: Fri, 26 Oct 2001 15:43:43 +0100 (BST)

 --- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote: 
> On Thu, Oct 25, 2001 at 06:07:04PM +0100, Gregory Berkolaiko wrote:
> > 
> > In order to apply your agent to AI we would need something balanced. 
> 
> > You might say "put a minimal value for two of the parameters and then
> > maximize the third".  Minimal food is almost easy, it only relates to
> the
> > growth you want.
> 
> The current interface doesn't support this. I'm also not sure what
> kind of interface should be used. Suppose you have an interface which
> can be set to "keep food surplus and shield surplus equal": if you
> have now a city which yields:
>  food surplus shield surplus
>        10            10
>         9            30
> 
> Which should be choosen? Which should be choosen if the 30 is a 60? 
> Since I don't know an interface/model which let me express this I
> can't code it.

I thought about this a little.  My conclusion was that it is easier to
get a balanced solution if you use the value function
  T_weight*(max_T - T)^2 + P_weight*(max_P - P)^2

T = trade
P = production
max_[TP] is maximal attainable [T/P] in the city (possibly given a
constraint on minimal food).
 
Best,
G.

____________________________________________________________
Nokia Game is on again. 
Go to http://uk.yahoo.com/nokiagame/ and join the new
all media adventure before November 3rd.


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