Hello, Finally, I thinks that the problem comes from my use of SOS constraints. If I use SOS constraints, I have a problem with the first line If I don't use constraints, everything is OK. I will write a new post related to SOS constraints (again). Sorry for the noise and thanks for your patience. Yann