The Rcpp interface to declare things. More...
#include "../../common/model.hpp"
#include "../../utilities/fims_json.hpp"
#include "rcpp_objects/rcpp_data.hpp"
#include "rcpp_objects/rcpp_distribution.hpp"
#include "rcpp_objects/rcpp_fleet.hpp"
#include "rcpp_objects/rcpp_growth.hpp"
#include "rcpp_objects/rcpp_interface_base.hpp"
#include "rcpp_objects/rcpp_maturity.hpp"
#include "rcpp_objects/rcpp_models.hpp"
#include "rcpp_objects/rcpp_natural_mortality.hpp"
#include "rcpp_objects/rcpp_population.hpp"
#include "rcpp_objects/rcpp_recruitment.hpp"
#include "rcpp_objects/rcpp_selectivity.hpp"
Go to the source code of this file.
The Rcpp interface to declare things.
Clears the internal objects.
Initialize and construct the FIMS model using TMB.
This function sets up the core C++ objects required for building the objective function with TMB before optimizing a FIMS model. The main steps of the function are as follows:
Typically the average user does not interact with this function because it is called within initialize_fims.
initialize_fims
initialize_fims()
Escapes quotations.
Gets the fixed parameters vector object.
Gets the parameter names object.
Gets the random effects names object.
Gets the random parameters vector object.
Initializes the logging system, setting all signal handling.
Update fixed parameters in the tape, so the output is correct.
Updates the internal parameter values for the model base of type TMB_FIMS_REAL_TYPE. It is typically called before finalize() or `get_output()` to ensure the correct values are used because TMB doesn't always keep the updated parameters in the "double" version of the tape. So we need to update those first. Usage example in R:
Update random effect parameters in the tape, so the output is correct.