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);
84 bool remove_names =
false);
99 absl::StatusOr<ModelProto>
ExportModel(
bool remove_names =
false)
const;
102 const std::weak_ptr<ModelStorage> storage_;
103 const UpdateTrackerId update_tracker_;
111 "can't call this function after the associated model has been destroyed";
absl::StatusOr< ModelProto > ExportModel(bool remove_names=false) const
UpdateTracker(const std::shared_ptr< ModelStorage > &storage)
absl::Status AdvanceCheckpoint()
absl::StatusOr< std::optional< ModelUpdateProto > > ExportModelUpdate(bool remove_names=false)
constexpr absl::string_view kModelIsDestroyed
An object oriented wrapper for quadratic constraints in ModelStorage.
In SWIG mode, we don't want anything besides these top-level includes.