This function allows adding custom attributes to the APSIMX object, which can be used to store additional metadata or assumptions related to the decision session. It ensures that all relevant information is encapsulated within the APSIMX object for easy access during later stages of the workflow.

.add_attribute(apsimx, attribute_name, attribute_value)

Arguments

apsimx

APSIM model object as returned by rapsimng::read_apsimx().

attribute_name

Character scalar name of the attribute to add.

attribute_value

List containing the attribute values to add.