ofv: Get Objective Function Value (OFV)

Description Usage Arguments Value Examples

View source: R/ofv.R

Description

[Stable]

Extracts OFV from .ext file.

Usage

1
ofv(r)

Arguments

r

An nm object.

Value

The numeric value of the OFV.

Examples

1
2
3
4
5
6
7
8
# 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 Oct. 18, 2021, 1:08 a.m.