Alternative to drools-planner/optaplanner in c++/c#?
Asked Answered
L

2

6

is there an comparable alternative for optaplanner/drools planner in C++ or C#? I only found a very old C# portation of 2007. Or how do you solve NP-hard optimization problems in C++/C#?

Lenitalenitive answered 21/8, 2013 at 6:39 Comment(0)
P
5

On the OptaPlanner mailing list, people have asked about using OptaPlanner from .NET before.

If you're interested in pursuing that direction (and it fits within your requirements), here were some of the idea's:

  • In Java, expose an OptaPlanner implementation as a REST service (with RestEasy and/or Camel). Map the domain objects to XML with JAXB (or XStream). Then use a C# client to contact that REST service.
  • From C#, call a command that starts a java app which reads an XML file as input and writes one as output. Again, use JAXB (or XStream) to serialize that XML.
  • Directly call Java from C# using something like IKVM.
Potful answered 21/8, 2013 at 7:46 Comment(0)
B
2

Google or-tools is implemented in C++ but has a number of bindings in other languages like C#. I've used the C# bindings and it works absolutely fine. The version downloaded through nuget.org didn't work for me, though it worked fine when I downloaded the software and manually referenced it from my project.

Banger answered 22/7, 2015 at 11:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.