Template:Clocostfunc

From EvoLudo
Revision as of 12:11, 13 October 2023 by Hauert (talk | contribs) (Created page with "; <tt>--costfcn <f1[,f2[...]]></tt> : cost function for each trait: :; <tt>0:</tt> \(C(x,y)=c_0\ x\) :: costs linear in own investment \(x\). :; <tt>1:</tt> \(C(x,y)=c_0\ x+c_1\ x^2\) :: costs quadratic in own investment \(x\) (<b>default</b>). :; <tt>2:</tt> \(C(x,y)=c_0 \sqrt{x}\) :: \(\sqrt{\ }\)-saturating costs for own investment \(x\) :; <tt>3:</tt> \(C(x,y)=c_0 \ln(c_1\ x+1)\) :: \(\ln\)-saturating costs for own investment \(x\) :; <tt>4:</tt> \(C(x,y)=c_0 (1-\ex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
--costfcn <f1[,f2[...]]>
cost function for each trait:
0: \(C(x,y)=c_0\ x\)
costs linear in own investment \(x\).
1: \(C(x,y)=c_0\ x+c_1\ x^2\)
costs quadratic in own investment \(x\) (default).
2: \(C(x,y)=c_0 \sqrt{x}\)
\(\sqrt{\ }\)-saturating costs for own investment \(x\)
3: \(C(x,y)=c_0 \ln(c_1\ x+1)\)
\(\ln\)-saturating costs for own investment \(x\)
4: \(C(x,y)=c_0 (1-\exp(-c_1\ x))\)
\(\exp\)-saturating costs for own investment \(x\)
10: \(C(x,y)=c_0 (x+y)\)
costs linear in joint investments \(x+y\).
11: \(C(x,y)=c_0 (x+y)+c_1\ (x+y)^2\)
costs quadratic in joint investments \(x+y\).
12: \(C(x,y)=c_0 (x+y)+c_1\ (x+y)^2+c_2\ (x+y)^3\)
costs cubic in joint investments \(x+y\).
13: \(C(x,y)=c_0 (x+y)+c_1\ (x+y)^2+c_2\ (x+y)^3+c_3\ (x+y)^4\)
costs quartic in joint investments \(x+y\).
20: \(C(x,y)=c_0 x+c_1\ y+c_2\ x\ y\)
costs linear in investments \(x\) and \(y\) as well as cross term \(x\,y\).
--costparams <c0>[,<c1>[...[;<c'0>[,<c'1>[...]]]]]
parameters \(c_i\) for cost function of each trait.