You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: