run: Run the solver

Description Usage Arguments Value Methods (by class) Examples

View source: R/run.R

Description

Runs the solver executable and extracts the quantity of interest (QOI) and its Jacobian matrix (if available).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
run(solver, x, ...)

## S3 method for class 'solver'
run(solver, x, ...)

## S3 method for class 'r_solver'
run(solver, x, ...)

## S3 method for class 'shell_solver'
run(solver, x, ignore.stdout = NULL, ignore.stderr = NULL, silent = FALSE, ...)

Arguments

solver

solver object.

x

numeric, the point (parameter set) at which QOI is evaluated.

...

additional arguments passed to other functions, note that particular solvers can have some required_args() and they must be provided.

ignore.stdout

logical, if not NULL overrides default setting in shell_solver object

ignore.stderr

logical, if not NULL overrides default setting in shell_solver object

silent

logical, suppress diagnostic messages (not warnings), TRUE forces ignore.stdout = TRUE and ignore.stderr = TRUE

Value

List with components:

qoi

QOI value at x, default implementation returns NA;

jacobian

QOI Jacobian matrix at x, default implementation returns NA, NA is also returned if the solver does not provide Jacobian info.

Methods (by class)

Examples

1
2
run(x = 10)
run(NULL, c(2, 4))

maciejsmolka/solvergater documentation built on Jan. 1, 2021, 8:28 a.m.