Learn R Programming

nlopt (version 0.1.1)

optimize: 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)

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)

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

Examples

Run this code
optimize(solver = "ipopt", file = "MINLPLib::alkyl", options=list(max_cpu_time=300, outlev=3))

Run the code above in your browser using DataLab