save_qplib¶
- save_qplib(model: Model, filename: str | os.PathLike) None¶
Save a model to a QPLIB file.
- パラメータ:
model (Model) -- Model to write.
filename (str | os.PathLike) -- Output file path.
- 例外:
RuntimeError -- If the model is invalid for the QPLIB format (e.g., contains degree 3 or higher, or has invalid variable names / constraint labels).