QuadraticProgram.write_to_lp_file¶
- QuadraticProgram.write_to_lp_file(filename)[source]¶
Writes the quadratic program to an LP file.
- Parameters
filename (
str
) – The filename of the file the model is written to. If filename is a directory, file name ‘my_problem.lp’ is appended. If filename does not end with ‘.lp’, suffix ‘.lp’ is appended.- Raises
OSError – If this cannot open a file.
DOcplexException – If filename is an empty string
- Return type
None