Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] CMA computation
Home

[Freeciv-Dev] CMA computation

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] CMA computation
From: Christian Knoke <ChrisK@xxxxxxxx>
Date: Tue, 19 Feb 2002 09:30:01 +0100

I'm trying to look into these clever computations
the CMA does.

In the following example I tried to find a balance
between science and shields:

City of Portland, size 6, The Republic, science 80%, tax 20%

A. CMA setting:   Surplus    Factor    Output    Product
          food:   0          1         12         12
        shield:   0          8         3          24
         trade:   -20        1         8           8
          gold:   -20        1         1           1
        luxury:   -20        1         0           0
       science:   -20        25        16        400
                                                 ---
                                                 445
with this worker setting (F/S/T):

       3/1/2, 2/1/2, 4/1/2, 3/0/2, 3 scientists


B. CMA setting:   Surplus    Factor    Output    Product
          food:   0          1         13         13
        shield:   0          25        3          75
         trade:   -20        1         18         18
          gold:   -20        1         3           3
        luxury:   -20        1         0           0
       science:   -20        10        15        150
                                                 ---
                                                 259
with this worker setting (F/S/T):

       3/1/2, 2/1/2, 4/1/2, 1/0/3, 1/0/3, 1/0/3, 1/0/3   

Obviously the setting B gives 1 bulb less, but the same shields as A.
This unwanted computational effect is due to the trade amount that B
gives.

Questions:

1. What good gives me the trade besides gold, luxury, and science? 
   I can only think of traderoutes.

2. Doesn't have the trade an unwanted side effect in all computations?

3. Trying to compute the science output:
      A:  8 * 80% = 6.4  --> 7  +  3S * 3 --> 9  ==> 16
      B: 18 * 80% = 14.4 ==> 15
   Is this correct?

Christian

-- 
http://www.enter.de/~c.knoke/  * * * * * * * * * * * * * * *
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.


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