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
ApplyVerifiedMPModelDelta

Return type: void

Arguments: const MPModelDeltaProto& delta, MPModelProto* model

ExtractValidMPModelInPlaceOrPopulateResponseStatus

Return type: bool

Arguments: MPModelRequest* request, MPSolutionResponse* response

ExtractValidMPModelOrPopulateResponseStatus

Arguments: const MPModelRequest& request, MPSolutionResponse* response

FindErrorInMPModelDeltaProto

Return type: std::string

Arguments: const MPModelDeltaProto& delta, const MPModelProto& model

FindErrorInMPModelProto

Return type: std::string

Arguments: const MPModelProto& model

FindFeasibilityErrorInSolutionHint

Return type: std::string

Arguments: const MPModelProto& model, double tolerance

MergeMPConstraintProtoExceptTerms

Return type: void

Arguments: const MPConstraintProto& from, MPConstraintProto* to