kaskr/RTMB

MakeADFun fails for constant objective

kaskr opened this issue · 0 comments

kaskr commented
library(RTMB)
f <- function(p) {
    return (1)
}
obj <- MakeADFun(f, list(mean=0, sd=1) ) ## Error in dependent(y) : 'x' must be 'advector' (lost class attribute?)