optimize {nlopt} | R Documentation |
Optimizes the problem
Description
Function that calls the corresponding solver with custom options to solve the problem given by the .nl file
Usage
optimize(solver, file, options)
Arguments
solver |
name of the solver (it has to be in the PATH) |
file |
.nl file with the optimization problem. If the name of the file starts with MINLPLib:: then the problem will be downloaded from MINLPLib library |
options |
list with the options for the solver |
Value
list with a string of the output given by the solver (output), the optimal value of the problem (objective), the status returned by the solver (status), the optimal primal solution (primal_solution), and the optimal dual solution (dual_solution)
Examples
optimize(solver = "ipopt", file = "MINLPLib::alkyl", options=list(max_cpu_time=300, outlev=3))
[Package nlopt version 0.1.1 Index]