ofv: Get Objective Function Value (OFV)

View source: R/ofv.R

ofvR Documentation

Get Objective Function Value (OFV)

Description

[Stable]

Extracts OFV from .ext file.

Usage

ofv(r)

Arguments

r

An nm object.

Value

The numeric value of the OFV.

Examples


# create example object m1 from package demo files
exdir <- system.file("extdata", "examples", "theopp", package = "NMproject")
m1 <- new_nm(run_id = "m1", 
             based_on = file.path(exdir, "Models", "ADVAN2.mod"),
             data_path = file.path(exdir, "SourceData", "THEOPP.csv"))

is_finished(m1) ## FALSE until run is completed
ofv(m1) ## NA until m1 is finished


NMproject documentation built on Sept. 30, 2022, 1:06 a.m.