C++ Reference: model_validator

This documentation is automatically generated.



Returns an empty std::string iff the model is valid and not trivially infeasible. Otherwise, returns a description of the first error or trivial infeasibility encountered.

NOTE(user): the code of this method (and the client code too!) is considerably simplified by this std::string-based, simple API. If clients require it, we could add a formal error status enum.
Function Type Arguments Comments
FindErrorInMPModelProto

Return type: std::string

Arguments: const MPModelProto& model

FindFeasibilityErrorInSolutionHint

Return type: std::string

Arguments: const MPModelProto& model, double tolerance

Send feedback about...