Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: Want calculation (Was:Re: flying AI (PR#1162))
Home

[Freeciv-Dev] Re: Want calculation (Was:Re: flying AI (PR#1162))

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Cc: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>, Raahul Kumar <raahul_da_man@xxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Want calculation (Was:Re: flying AI (PR#1162))
From: Petr Baudis <pasky@xxxxxxxxxxx>
Date: Tue, 1 Jan 2002 13:34:27 +0100

Dear diary, on Tue, Jan 01, 2002 at 12:13:33PM CET, I got a letter,
where Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx> told me, that...
>  --- "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx> wrote: 
> > 
> > This is used for veteran units. Obviously they are 40 somethings better
> > than the standard unit build_cost, probably because rifleman are the
> > prototypical unit and this is double the shield cost or something :-).
> 
> I thought it is used as the boat cost if we need the boat.
Well, as I said, I basically think the same.

> Want = Operation_Profit * Amortization_Factor
> 
> where 
> 
> * Amortization_Factor is completely beyond me (but it's a function of the
> estimated time length of the operation).

amortize() IMHO calculates weight of benefit 'repay' in certain time.  Returns
benefit * ((MORT - 1) / MORT)^delay (^ = to the power of).  That means
amortize() is directly proportional to benefit and indirectly proportional to
delay - i.e. longer it takes, less worth it's to do it, but more it gives, more
worth it's to do it.

> * Operation_Profit = Battle_Profit - Maintenance
> 
> where
> 
> * Maintenance 
>   = (1 shield + Unhappiness_Compensation) * Operation_Time 
>   (here unhappiness is from military unit being away from home)  
> 
> * Battle_Profit
>   = Shields_Lost_By_Enemy * Probability_To_Win 
>     - Shields_Lost_By_Us * Probability_To_Lose
I basically agree with all these.

-- 

                                Petr "Pasky" Baudis

UN*X programmer, UN*X administrator, hobbies = IPv6, IRC, FreeCiv, (e)links
.
Firewall in a way is like the doorkeeper of a local pub. If you don't have your
I.D. on you, or if for some reason you do not qualify to enter, the doorkeeper
will not permit you to enter. In some extreme cases these doorkeepers will not
let you out, or at least give you a hard time before they finally let you out.
.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/


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