File: checksolver.Rd

package info (click to toggle)
r-cran-optimx 2020-4.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,492 kB
  • sloc: sh: 21; makefile: 5
file content (35 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\name{checksolver}
\alias{checksolver}
\encoding{UTF-8}
\title{Test if requested solver is present}
\concept{minimization}
\concept{maximization}
\description{
  Test if requested solver is present.
}
\usage{
   checksolver(method, allmeth, allpkg)
}
\arguments{
 \item{method}{Character string giving the name of the solver requested.}
 \item{allmeth}{Character vector giving the names of the methods optimr can use.}
 \item{allpkg}{Character vector giving the names of the packages where
     solvers are found.}
}
\value{
  \code{checksolver} tests if requested function minimization solver is present.
}
\examples{
   allmeth <- c("Rvmmin", "nlminb","ipopttest")
   allpkg <- c("Rvmmin", "stats","ipoptr")
   
   print(checksolver("nlminb", allmeth, allpkg))
   # If Rvmmin NOT available, get msg that PACKAGE not available.
   print(checksolver("Rvmmin", allmeth, allpkg))
   # Get message that SOLVER not found
   print(checksolver("notasolver", allmeth, allpkg))

}
\keyword{nonlinear}
\keyword{optimize}