Enum grb::Error [−][src]
pub enum Error {
FromAPI(String, i32),
NulError(NulError),
ModelObjectRemoved,
ModelObjectPending,
ModelObjectMismatch,
ModelUpdateNeeded,
AlgebraicError(String),
NotYetSupported(String),
}
Expand description
The error type for operations in Gurobi Rust API
Variants
An error returned from Gurobi C API. Contains the message and the error code.
NulError(NulError)
Conversion to a C-style null-termined string failed. Contains the underlying std::ffi::NulError
.
Tuple Fields of NulError
0: NulError
Query/modifying a removed variable or constraint
Model object hasn’t been updated yet. A call to Model::update
is needed.
Model object comes from a different model
A call to Model::update
is required before this operation
AlgebraicError(String)
Modelling errors caused by the user, usually by providing quadratic expressions to methods that expect
linear terms such as Model::add_constr
.
Tuple Fields of AlgebraicError
0: String
NotYetSupported(String)
Gurobi feature not yet supported by this crate. Currently for internal use only.
Tuple Fields of NotYetSupported
0: String