codac-team / codac

Codac is a library for constraint programming over reals, trajectories and sets.
http://www.codac.io
GNU Lesser General Public License v3.0
39 stars 18 forks source link

Bug with the Matlab version #101

Open cviel opened 11 months ago

cviel commented 11 months ago

I have tested the package with Matlab and there are several problems that prevent it from being used :

I can't test the validity of the function "Function" since IntervalVector returns a wrong result, so to be tested. Good luck to fix it, and thank you for your work !

lebarsfa commented 11 months ago

Indeed, here are some quick answers:

The operator [index] for a Codac object should be replaced with .getitem(int32(index)) [...] indices of Codac objects start at 0...

on https://www.codac.io/install/04-start-matlab-project.html . We plan to try to simplify this notation to something like x.i(0), if there is no side effect.

Python lists of objects should be converted to MATLAB cell arrays. [...] when a Codac function needs a py.list or Vector parameter, the corresponding MATLAB cell array should be given as py.list(…)

I do not know yet if there would be a simple way to simplify this.