LpTranslator ¶
Utility class for converting between LP files and symbolic models.
LpTranslator
provides methods to:
- Convert an LP file into a symbolic Model
- Convert a Model
into an Lp file.
These conversions are especially useful when interacting with external solvers or libraries that operate on LP-based problem definitions.
Examples:
>>> from pathlib import Path
>>> from luna_quantum import LpTranslator
>>> lp_filepath = Path("path/to/the/lp_file")
Convert it back to an LP file: