Description Usage Arguments Value Note Author(s) Examples
getObjective will access the final value(s) of the objective function. It is a generic function, with inputs/outputs on different classes described below:
1 | getObjective(obj, addMinInfo=TRUE, ...)
|
obj |
NMRun, or problem inheriting from NMProblem |
addMinInfo |
Logical flag. Should the minimization info be added if it's available? |
... |
Additional parameters passed to other methods. |
For x of class NMBasicModel
, a numeric vector with minimization information attached as an attribute.
If x is of class NMBasicModelNM7
, a vector with one entry for each method requested, For x of class NMSimModel
,
a numeric vector with one element for each subproblem chosen. If x is of class NMSimModelNM7
, a vector with each
selected subproblem number when only a single method is chosen, or a matrix with a column for each method and row for
each sub-problem if multiple methods are selected. If x is of class NMRun
, the output will vary according to the problem selected (as above).
The parameters method
and subProblem
will be restricted to valid ranges suitable for the given object
Mango Solutions
1 2 3 4 5 | ## Not run:
x <- importNm("theoph.con", path = "examples/theoph")
getObjective(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.