Knitro command line interface (CLI)

Knitro offers a command line interface via an executable contained in the bin folder of Knitro distributions, called knitro.exe on Windows and knitro on Linux/macOS. It currently supports models formulated in MPS, LP, or NL format.

Usage of the CLI is as follows:

<executable> <input-file> [option1=value] [option2=value] ...

where executable is the path to the Knitro CLI executable and input-file is the path to the problem definition file in MPS, LP, or NL format. For easy detection of problem format, it is recommended that the file extension be .mps, .lp, or .nl. You can append an arbitrary number of option/value pairs specifying Knitro user options, with an = sign between option and value and a whitespace after each pair.

Please refer to Knitro options for the list of supported user options.