update_nonlinear_constraints {sectorgap} | R Documentation |
Non linear constraints update
Description
Updates the system matrices of a state space model to include non linear constraints.
Usage
update_nonlinear_constraints(state, model, settings, df_constr, data)
Arguments
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: |
Details
data
is preferably the output of funtion prepare_data
.
Value
The state space model object model
with updates matrices.
Examples
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
)
[Package sectorgap version 0.1.0 Index]