calculate_objective: Calculates the Value of the Specified Objective Function

View source: R/ubiquity.r

calculate_objectiveR Documentation

Calculates the Value of the Specified Objective Function

Description

For a given set of system parameters the objective function will be calculated based on defined cohorts and variance models.

Usage

calculate_objective(parameters, cfg, estimation = TRUE)

Arguments

parameters

system parameters

cfg

ubiquity system object

estimation

boolean variable to indicate if the objective function is being called during parameter estimation

Value

If estimation is TRUE it will return the objective function value, if it is FALSE it will return a list with an element value containing the objective function value and an element named isgood that is TRUE if the objective function was successful.


ubiquity documentation built on May 29, 2024, 12:02 p.m.