MiniZinc / libminizinc

The MiniZinc compiler
http://www.minizinc.org
Other
505 stars 79 forks source link

Python/C(++) Modelling API #181

Open nwmcsween opened 6 years ago

nwmcsween commented 6 years ago

Could libminizinc gain a C API?

Dekker1 commented 6 years ago

There are current plans to implement a modelling API for MiniZinc in C(++) and Python in the near future. We will try and keep you updated on the process.

Aathish04 commented 2 years ago

Has there been any progress on this issue? I've been searching for a C API to MiniZinc but information (at least where I've been looking) has been sparce.

Dekker1 commented 2 years ago

There has been a focus on an API to run an interact with MiniZinc instances from other languages, less so on Modelling in MiniZinc from other languages. There has been a C++ incremental prototypes, but the more mature API is the MiniZinc Python version that interacts with MiniZinc through its executable.

We most certainly hope to further develop APIs, and they are a priority for the next major MiniZinc version, but their development will take a while.

I have seen some applications that directly interact with libminizinc as a C++ library, but I'm not sure I would recommend it.