Writes the quadratic program to an LP file.
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.
OSError – If this cannot open a file.
DOcplexException – If filename is an empty string