Closed chriscmr closed 3 months ago
Putting the solution here in case someone encounters this issue again:
Set options directly with the @ setters for S4 objects, and see them with the $ getters for S4 objects. For example:
# Create model
model <- dynr.model(dynamics=dynamics, measurement=meas, noise=ecov, initial=initial, data=data)
# Set things
opt <- model$options
opt$maxeval <- 1000
model@options <- opt # Now the model has maxeval option set to 1000 instead of 500
I'm trying to set the options for the optimization algorithm as explained in the documentation like this:
But I'm getting the following error
Could you please help me to solve this?