Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoubleLinearExpr static methods are not available from other modules #4435

Closed
priamoryki opened this issue Nov 11, 2024 · 0 comments
Closed
Assignees
Labels
Bug Lang: Java Java wrapper issue Solver: CP-SAT Solver Relates to the CP-SAT solver
Milestone

Comments

@priamoryki
Copy link

What language and solver does this apply to?
Java / CP-SAT

Describe the problem you are trying to solve.
I've decided to use DoubleLinearExpr with a model in which I have a division and have found an interesting thing: all static methods in the LinearExpr class can be called from my module, but there is no way to use such methods from DoubleLinearExpr. As I see it, the difference is that LinearExpr is an interface, while DoubleLinearExpr is just a default class. So, the only way I can use DoubleLinearExpr is by calling a constructor, which is not convenient.
This logic doesn't seem correct to me.

Describe the solution you'd like
Adding a public modifier to all static methods in DoubleLinearExpr should resolve the problem.

@Mizux Mizux added Bug Lang: Java Java wrapper issue Solver: CP-SAT Solver Relates to the CP-SAT solver labels Nov 12, 2024
@Mizux Mizux added this to the v10.0 milestone Nov 12, 2024
lperron added a commit that referenced this issue Nov 12, 2024
@lperron lperron closed this as completed Nov 12, 2024
@Mizux Mizux modified the milestones: v10.0, v9.12 Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Lang: Java Java wrapper issue Solver: CP-SAT Solver Relates to the CP-SAT solver
Projects
None yet
Development

No branches or pull requests

3 participants