qiskit.optimization.QuadraticProgram.read_from_lp_file¶
-
QuadraticProgram.
read_from_lp_file
(filename)[source]¶ Loads the quadratic program from a LP file.
- Parameters
filename (
str
) – The filename of the file to be loaded.- Raises
FileNotFoundError – If the file does not exist.
MissingOptionalLibraryError – If CPLEX is not installed.
Note
This method requires CPLEX to be installed and present in
PYTHONPATH
.- Return type
None