Expose linear solver callback to .Net #2603
Labels
Feature Request
Missing Feature/Wrapper
Lang: .NET
.Net wrapper issue
Solver: Linear Solver
Related to all Linear Solver (GLOP, BOP, CBC etc...)
Milestone
What language and solver does this apply to?
Solver: Linear Solvers, which support callbacks (SCIP for example)
Languages: C#, C++
Version: building from stable branch
Describe the problem you are trying to solve.
Describe the solution you'd like
Expose linear solvers callback functionality to .Net
Additional context
I tried to implement it myself, but unfortunatelly I don't have an appropriate experience with C++ and SWIG.
What I've done:
I added a new C++ class:
I added the following pieces of the code to linear_solver.i file:
My C# code:
I also tried to use LinearSolutionCallback in C++ program. It works!
I'll be happy to create a pull request if you help me to find out what is going wrong. I tried to compare Google.OrTools.Sat.SolutionCallback and Google.OrTools.LinearSolver.LinearSolutionCallback wrapper classes and did't find any meaningfull difference.
Thank you!
The text was updated successfully, but these errors were encountered: