Benchmark model construction performance
masterPyOptInterface is benchmarked based on its ability to generate optimization models and pass them to solvers. Performance is measured in terms of 'model construction time' (the time taken by the modeling interface to generate the model and hand it off to the optimizer).
Key performance characteristics observed in benchmarks:
- Comparison with direct solver APIs: PyOptInterface shows performance competitive with C++ interfaces and significantly faster than direct Python APIs like
gurobipyorcoptpyfor large-scale models. - Comparison with other modeling languages: It outperforms
Pyomoby orders of magnitude in model construction time. It also shows significant performance advantages overlinopyandcvxpywhen generating and solving linear programming models. - Scalability: The interface maintains high efficiency as the number of variables increases, from tens of thousands to millions of variables.