Skip to content

Conversation

@darshanpatel-arculus
Copy link
Contributor

  • Update the protobuf definitions to reflect ortools v9.14
  • Adapt Builder methods and doc-tests to use new protobuf types

target: impl Into<LinearExpr>,
exprs: impl IntoIterator<Item = impl Into<LinearExpr>>,
) -> Constraint {
self.add_cst(CstEnum::LinMin(proto::LinearArgumentProto {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing this constraint ?

Copy link
Contributor Author

@darshanpatel-arculus darshanpatel-arculus Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lin_min constraint was removed from the protobuf definitions (by google) which results into removal CstEnum::LinMin variant.

google/or-tools@ef59381

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit you linked keep the implementation of addMinEquality in the C++ interface. Doing so as well here will allow to be backward compatible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't add it initially, as I thought this was just a pure bindings crate. Nevertheless, I have added it back now. :)
Can you please verify the implementation ?

@darshanpatel-arculus darshanpatel-arculus force-pushed the update_to_ortools_v914_upstream branch from e884de7 to e58df07 Compare August 25, 2025 09:48
@darshanpatel-arculus darshanpatel-arculus force-pushed the update_to_ortools_v914_upstream branch from e58df07 to 4cf5cb4 Compare August 25, 2025 11:24
Copy link
Collaborator

@TeXitoi TeXitoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cgcht @Hfarizon OK to merge ?

@TeXitoi TeXitoi merged commit 267c9a7 into KardinalAI:master Aug 27, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants