18#include "absl/container/flat_hash_set.h"
19#include "absl/status/status.h"
28 const ModelStorage*
const expected_storage)
const {
30 <<
"invalid model_parameters";
32 <<
"invalid callback_registration";
35 return absl::InvalidArgumentError(
36 "no callback was provided to run, but callback events were registered");
38 return absl::OkStatus();
#define RETURN_IF_ERROR(expr)
An object oriented wrapper for quadratic constraints in ModelStorage.
absl::flat_hash_set< CallbackEvent > events
absl::Status CheckModelStorage(const ModelStorage *expected_storage) const
absl::Status CheckModelStorage(const ModelStorage *expected_storage) const
absl::Status CheckModelStorageAndCallback(const ModelStorage *expected_storage) const
ModelSolveParameters model_parameters
Model dependent parameters, e.g. solution hint.
CallbackRegistration callback_registration