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