Adding equations of geometry

Hi all,

I have no idea about how to add geometry equations into my model correctly, can you give me some help?

There are four cylinders in my part, the length are l1,l2,l3,l4. I want the total lenght to be a constant and change one of the l to do some simulation. How should I do?

Thank you very much!!!

best

SolidworksParts And Features