14#ifndef OR_TOOLS_MATH_OPT_CPP_UPDATE_TRACKER_H_
15#define OR_TOOLS_MATH_OPT_CPP_UPDATE_TRACKER_H_
20#include "absl/status/status.h"
21#include "absl/status/statusor.h"
22#include "absl/strings/string_view.h"
24#include "ortools/math_opt/model.pb.h"
25#include "ortools/math_opt/model_update.pb.h"
71 explicit UpdateTracker(
const std::shared_ptr<ModelStorage>& storage);
98 const std::weak_ptr<ModelStorage> storage_;
99 const UpdateTrackerId update_tracker_;
107 "can't call this function after the associated model has been destroyed";
absl::StatusOr< ModelProto > ExportModel() const
absl::Status Checkpoint()
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.