rad  1.5.2
Radial Attention Model
Data Fields
objpart_t Struct Reference

Objective function part structure. More...

#include <rad_types.h>

Data Fields

double(* fnc )(const objvar_t *v)
 Objective function part callback. More...
 
const char * str
 Objective function part definition. More...
 

Detailed Description

Objective function part structure.

Objective function part type.

Contains a callback function that is used in the evaluation of the model's objective. The expected parts are the temporal utility, the attentional costs, the radius dynamics and the wealth dynamics. In addition it offers a string placeholder for storing the content of the definition of the function. The intended use is to write the content of the callback as a macro and the use CCM_STRINGIFY to get a string it and store it in the placeholder. See also rad_specs.h

Field Documentation

◆ fnc

double(* objpart_t::fnc) (const objvar_t *v)

Objective function part callback.

A function used in the evaluation of the model's objective.

Parameters
vInput parameters, state variables and controls
Returns
Evaluated part

◆ str

const char* objpart_t::str

Objective function part definition.

A string of the content of the part' definition


The documentation for this struct was generated from the following file: