Template:Clocostfunc: Difference between revisions

From EvoLudo
Created page with "; <tt>--costfcn <f1[,f2[...]]></tt> : cost function for each trait: :; <tt>0:</tt> C(x,y)=c0 x :: costs linear in own investment x. :; <tt>1:</tt> C(x,y)=c0 x+c1 x2 :: costs quadratic in own investment x (<b>default</b>). :; <tt>2:</tt> C(x,y)=c0x ::  -saturating costs for own investment x :; <tt>3:</tt> C(x,y)=c0ln(c1 x+1) :: ln-saturating costs for own investment x :; <tt>4:</tt> \(C(x,y)=c_0 (1-\ex..."
 
No edit summary
 
Line 21: Line 21:
:; <tt>20:</tt> C(x,y)=c0x+c1 y+c2 x y
:; <tt>20:</tt> C(x,y)=c0x+c1 y+c2 x y
:: costs linear in investments x and y as well as cross term xy.
:: costs linear in investments x and y as well as cross term xy.
; <tt>--costparams <c0>[,<c1>[...[;<c'0>[,<c'1>[...]]]]]
; <tt>--costparams <c0>[,<c1>[...[;<c'0>[,<c'1>[...]]]]]</tt>
: parameters ci for cost function of each trait.
: parameters ci for cost function of each trait.

Latest revision as of 11:26, 13 October 2023

--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.