Terminal constraints in python

Thanks for the quick reply, I confirm that the conversion works.
I missed the following setting :
ocp.dims.nbx_e = nx
Now, it works as expected !
Thanks,
Fb