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

Update to MOI v1 #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update to MOI v1 #2

wants to merge 2 commits into from

Conversation

blegat
Copy link
Contributor

@blegat blegat commented Aug 19, 2024

It is failing with

MethodError: no method matching JavaCall.JavaObject{Symbol("org.jacop.constraints.XeqC")}(::JavaCall.JavaObject{Symbol("org.jacop.core.IntVar")}, ::Int64)
  
  Closest candidates are:
    JavaCall.JavaObject{T}(::Tuple, ::Any...) where T
     @ JavaCall ~/.julia/packages/JavaCall/MlduK/src/core.jl:103
    JavaCall.JavaObject{T}(::Any) where T
     @ JavaCall ~/.julia/packages/JavaCall/MlduK/src/core.jl:96

and I have the same issue locally. Not sure what's the issue, I'm never used JuliaCall before.

@Azzaare
Copy link
Member

Azzaare commented Aug 20, 2024

I have updated JavaCall to v0.8 (last) but it doesn't solve it. It might be an issue with an update in JaCoP itself making breaking changes.
I tried to play a bit with fixing the errors but I stumbled upon some classes inheritance issues. Per say, XeqC is supposed to inherit from Constraint but we don't have inheritance in Julia.

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