update_nonlinear_constraints | R Documentation |
Updates the system matrices of a state space model to include non linear constraints.
update_nonlinear_constraints(state, model, settings, df_constr, data)
state |
multiple time series object with states |
model |
state space model object (with assigned parameters) |
settings |
list with model setting, in the format returned by the
function |
df_constr |
data frame with constraint settings |
data |
list with at least two named components: |
data
is preferably the output of funtion prepare_data
.
The state space model object model
with updates matrices.
data("data_ch")
settings <- initialize_settings()
data <- prepate_data(
settings = settings,
tsl = data_ch$tsl,
tsl_n = data_ch$tsl_n
)
model <- define_ssmodel(
settings = settings,
data = data
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.