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: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Cc: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Comments on CMA 2.6
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 28 Oct 2001 17:50:39 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Fri, Oct 26, 2001 at 03:43:43PM +0100, Gregory Berkolaiko wrote:
>  --- 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).

Looks sane. How can this modus and the current one be merged? Just an
extra flag in cma_parameter to enable the method above?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "SIGDANGER - The System is likely to crash soon"


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