QuadraticProgram.write_to_lp_file¶
- QuadraticProgram.write_to_lp_file(filename)[fuente]¶
Writes the quadratic program to an LP file.
- Parámetros:
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.
- Muestra:
OSError – If this cannot open a file.
DOcplexException – If filename is an empty string