dimod.lp.dump#
- dump(cqm: ConstrainedQuadraticModel, file_like: TextIO)[source]#
Serialize a constrained quadratic model as an LP file.
LP files are a common format for encoding optimization models. See documentation from Gurobi and CPLEX.
- Parameters:
cqm – A constrained quadratic model.
file_like – A
.write()
supporting file-like object.