I just tried something quickly and it may be a start.
Make your cable/tube however you wish just make sure you have enough edge loops to deform properly. Go into edit mode and select only the vertices at each end and add to a vertex group, name something like “pinning”.
Now add a “cloth” modifier and enable pinning and use the vertex group you’ve just created. Run the simulation and it will behave like cloth but be held up by the “pinning”. It may take some time to get the cloth settings right to make it look semi rigid.
Lastly you could go back to edit mode and select the vertices at one end and add a hook using Ctrl+h, set to new object and it will create an empty. Do the same for the opposite side… now you’ll be able to animate the locations of these empties to tighten the cable.
hope this gets you thinking anyway…