Re: [R] Dynamic Programming in R

2020-06-08 Thread Bert Gunter
Search before posting here! "dynamic programming R" brought up several relevant hits. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Jun 8, 2020 at 5:54

[R] Dynamic Programming in R

2020-06-08 Thread Nikos Matsavelas
Is there any package that implements Dynamic Programming like maximises/minizises the sum or product in a three way matrix in R?Like the problem that i have solved by hand (attached pdf file) __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and mo

Re: [R] dynamic programming

2011-05-29 Thread Patrick Breheny
On 05/29/2011 06:07 AM, garciap wrote: V<-fitness*(c+dive*pfood, t+1) What are you trying to do in this line? Multiply fitness by two different things at once? The expression (1,2) Causes problems in R. If you want to combine them into a vector, you need c(1,2) Otherwise, please go int

[R] dynamic programming

2011-05-29 Thread garciap
Dear members of R forum, I'm trying to perform a simply dynamic programming model in R, following the reccomendations of Soetart & Herman (A practical guide to ecological modeling). However, I've obtained a number of problems, that I'm unable to solve (even thoughI've tried during at least 2 hours