A helper to create solver object encapsulating calls to fake_simple.R.

fake_simple_solver(nparams, nqoi, wd = tempdir(), ...)

Arguments

nparams

numeric scalar, number of parameters.

nqoi

numeric scalar, number of quantities of interest.

wd

character, working directory.

...

additional parameters passed to shell_solver().

Examples

s <- fake_simple_solver(3, 4) run(s, c(-1, 5.2, 0))
#> Solver command: /Library/Frameworks/R.framework/Resources/bin/Rscript /Users/runner/work/_temp/Library/solvergater/exec/fake_simple.R 3 4 -1 5.2 0
#> Entering /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T//Rtmp2pZMh5
#> Solver exited normally
#> $qoi #> [1] 4.2000 28.0400 139.6080 732.1616 #> #> $jacobian #> [,1] [,2] [,3] #> [1,] 1 1.000 1 #> [2,] -2 10.400 0 #> [3,] 3 81.120 0 #> [4,] -4 562.432 0 #>