Worker terminated in parallel computation with Gurobi

Apparently the error does not appear if I do not use @distributed.
Another thing that I have noticed is that I had not correctly updated the vector rhspen, which contains the penalties to apply to the constraints violations, therefore it had less elements than the actual number of constraints. I do not know if this had an influence, but since this correction the error does not appear anymore (even addressing all the constraints that I need).
This is a good thing for me, because it allows to execute the code without stops, even if the nature of the problem is still not clear to me.
I understand that a minimum working example is fundamental to receive help and I will try to provide one if the issue will come back. For the moment I thank you very much for your support!

1 Like