Template:Clocostfunc

From EvoLudo
Revision as of 12:26, 13 October 2023 by Hauert (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
--costfcn <f1[,f2[...]]>
cost function for each trait:
0: C(x,y)=c0 x
costs linear in own investment x.
1: C(x,y)=c0 x+c1 x2
costs quadratic in own investment x (default).
2: C(x,y)=c0x
 -saturating costs for own investment x
3: C(x,y)=c0ln(c1 x+1)
ln-saturating costs for own investment x
4: C(x,y)=c0(1exp(c1 x))
exp-saturating costs for own investment x
10: C(x,y)=c0(x+y)
costs linear in joint investments x+y.
11: C(x,y)=c0(x+y)+c1 (x+y)2
costs quadratic in joint investments x+y.
12: C(x,y)=c0(x+y)+c1 (x+y)2+c2 (x+y)3
costs cubic in joint investments x+y.
13: C(x,y)=c0(x+y)+c1 (x+y)2+c2 (x+y)3+c3 (x+y)4
costs quartic in joint investments x+y.
20: C(x,y)=c0x+c1 y+c2 x y
costs linear in investments x and y as well as cross term xy.
--costparams <c0>[,<c1>[...[;<c'0>[,<c'1>[...]]]]]
parameters ci for cost function of each trait.