Skip to content

Need guidance for a PR #60

@patrickguenther

Description

@patrickguenther

Hello everyone,

I'm currently working on a PR, to expose SCIP's event handlers via the java API. I'm making good progress and am currently working on an example for running the travelling sales man problem to illustrate event handler usage and testing my implementation.
I have some questions, however:

  • What is the maximum java version, I should target? From existing code I'm guessing 1.7, but I hope I can at least use 1.8 🙏 ?
  • What version of SWIG am I supposed to use? I used 4.4.x or whatever was the most recent version in my package repository, but I found files that had been generated by 4.0.2, so I compiled 4.0.2 manually and then I found files generated by 4.2.x. So I guess, I just use whatever I want and roll back file changes that only change the version number in the generated comments?
  • The scip_exec callback is receiving a pointer argument of type SCIP_Event (see struct_event.h) which contains data relevant to the event being observed. I have no clue however how to access it's fields or how they are layed out in memory with the union. I'm thinking about mapping it's type to a fixed-length byte array first and checking out it's content in the java debugger. I have no clue if that would work. Is there a recommended approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions