Describes the basic usage of the idol_cl tool.
idol_cl is a command-line tool for solving mathematical optimization problems, including:
It allows you to model, solve, and analyze optimization problems directly from the command line.
To install it, please refer to the Installation page.
To solve a given MILP stored in an .lp file, all you need to do is
If you want to set a time limit and use a specific method, run
To see which solution methods are available for a given problem, use the list-methods subcommand.
Sampled Output:
If no method is specified, idol_cl automatically selects a suitable solver for the detected problem type.
Bilevel problems are represented using a pair of files:
For more information, see the dedicated page on Input Format for Bilevel Problems.
Given a bilevel problem, you can solve it by running
Some commands require more parameters than others. For instance, here is how to solve an LP-LP bilevel problem using its KKT reformulation using big-M values.
For more information, see our tutorial on Solving Bilevel Problems via its KKT-Based Single-Level Reformulation.
Here again, to list the available methods for your problem class, you may use
Finally, if the bilevel problem does not have coupling constraints, it is possible to address its pessimistic variant by appending the --pessimistic flag. If so, the relaxation-and-correction scheme from Zeng (2025) will be applied.