MPS

titanq.tools.configure_model_from_mps_file(model: Model, file_path: Path) None

Configure a model with an MPS file. Set the variable vector, the objective matrices and the constraints.

Parameters

model

The instance of the model to configure.

file_path

The path to the MPS file.

Some exceptions that can be raised while parsing MPS files

exception titanq.tools._mps.errors.MPSFileError

Errors related to .mps files

exception titanq.tools._mps.errors.MPSMalormedFileError

The file is malformed

exception titanq.tools._mps.errors.MPSMissingSectionError

A required section is missing

exception titanq.tools._mps.errors.MPSMissingValueError

A required value is missing

exception titanq.tools._mps.errors.MPSUnexpectedValueError

Found an unexpected value

exception titanq.tools._mps.errors.MPSUnsupportedError

Found an unsupported value