17 #ifndef OR_TOOLS_MATH_OPT_CPP_UPDATE_TRACKER_H_
18 #define OR_TOOLS_MATH_OPT_CPP_UPDATE_TRACKER_H_
23 #include "absl/status/status.h"
24 #include "absl/status/statusor.h"
25 #include "absl/strings/string_view.h"
26 #include "ortools/math_opt/model.pb.h"
27 #include "ortools/math_opt/model_update.pb.h"
74 explicit UpdateTracker(
const std::shared_ptr<ModelStorage>& storage);
101 const std::weak_ptr<ModelStorage> storage_;
102 const UpdateTrackerId update_tracker_;
110 "can't call this function after the associated model has been destroyed";
absl::StatusOr< ModelProto > ExportModel() const
absl::Status AdvanceCheckpoint()
UpdateTracker(const std::shared_ptr< ModelStorage > &storage)
absl::StatusOr< std::optional< ModelUpdateProto > > ExportModelUpdate()
constexpr absl::string_view kModelIsDestroyed
Collection of objects used to extend the Constraint Solver library.