I want to define an integral function which depends on a system of ODE and is also used to NDSolve the ODEs.
Tc = Sum[c[i]]; D[c[i], t] == r[i] c[i] (1 - Tc/k) - d[i] c[i]
where i = 1,...,n
Basically, I want to evaluate Tc at a given t value, before solving the differential equation for c[i] so that the code uses this value for NDSolve.
r, k and d are known parameters. c[i] needs to be calculated and thus Tc which is a summation of all c[i]s, at a give time t, is also unknown.
Thanks in advance :)