How do we solve for the initial consumption level in the Ramsey model? Assume we have the Euler equation $$\frac {\dot c_t}{c_t}=r_t-\rho$$ Then $$c_t=c_0e^{R_t-\rho t}$$ Putting this into the lifetime budget constraint: $$\int_0^\infty e^{-R_t}(w_t-c_t)dt=k_0$$ gives $$\int_0^\infty e^{-R_t}w_t dt-\frac {c_0} {\rho}=-k_0$$
Therefore $$c_0=\rho\left(\int_0^\infty e^{-R_t}w_t dt+k_0\right)$$
Where we know that $w_t=f(k_t)-k_t r_t$ and that $r_t=f'(k_t)$, and $R_t=\int_0^t r_\tau d\tau$.
However, the problem is that the initial amount of consumption will influence the path of $k_t$, because $\dot k_t=f(k)-c_t$, and therefore of $w_t$ and $r_t$ as well. Therefore it seems to me that solving for $c_0$ is almost impossible here.
So let's say we would have a computer that could help us solve this, how would we do it? e.g. how does Dynare/matlab do it?