41 static absl::StatusOr<std::unique_ptr<SolverInterface>>
New(
44 absl::StatusOr<SolveResultProto>
Solve(
46 const ModelSolveParametersProto& model_parameters,
48 const CallbackRegistrationProto& callback_registration,
Callback cb,
50 absl::StatusOr<bool>
Update(
const ModelUpdateProto& model_update)
override;
51 absl::StatusOr<ComputeInfeasibleSubsystemResultProto>
58 std::vector<int64_t> linear_constraint_ids);
61 SparseDoubleVectorProto ExtractSolution(
62 absl::Span<const double> cp_sat_variable_values,
63 const SparseVectorFilterProto& filter)
const;
68 const MPModelProto cp_sat_model_;
72 const std::vector<int64_t> variable_ids_;
77 const std::vector<int64_t> linear_constraint_ids_;
absl::StatusOr< SolveResultProto > Solve(const SolveParametersProto ¶meters, const ModelSolveParametersProto &model_parameters, MessageCallback message_cb, const CallbackRegistrationProto &callback_registration, Callback cb, const SolveInterrupter *interrupter) override