The solver can be invoked from Windows PowerShell or a Linux terminal using the following syntax (without the square braces):

octeract-engine [problem_file]

The solver supports direct input in ASL (.nl), MPS (.mps), and LP (.lp) formats. It also works out-of-the-box with Pyomo, AMPL, and JuMP. Example input files are included in the installation folder under /examples. Let’s begin by solving test problem ex2_1_1.nl.

Invoke the solver using the following command:

octeract-engine ex2_1_1.nl

You should see the following output:

-----------------------------------------------------------------------------------------------
Iteration            GAP               LLB          BUB        Pool      Time     Mem
-----------------------------------------------------------------------------------------------
11           5.000e-11 (  0.00%)   -1.700e+01     -1.700e+01    3        0.0s    91.0MB

Objective value at global solution: -1.700e+01

By default, the solver outputs the following information:

By default, the solver will automatically write an .octsol solution file to the system’s

LOCAL_TEMP. This directory can be set explicitly (overridden) using the-d flag:

octeract-engine ex2_1_1.nl -d MY_SOLUTION_PATH

Detailed solution information can be accessed by inspecting the .octsol solution file in the selected location. Conveniently, all .octsol files are also .json files. Aren’t you lucky.

Leave a Reply

Your email address will not be published. Required fields are marked *