save_qplibΒΆ
- save_qplib(model: Model, filename: str | os.PathLike) NoneΒΆ
Save a model to a QPLIB file.
- Parameters:
model (Model) β Model to write.
filename (str | os.PathLike) β Output file path.
- Raises:
RuntimeError β If the model is invalid for the QPLIB format (e.g., contains degree 3 or higher, or has invalid variable names / constraint labels).