I guess the big trick is to do it with minimum risk to hostages. Still, the sooner it is done the better to put an end to it all.
Attack the pirates bases? Look how much shxx Obama has caught here for our actions regarding Libya. However, if China is also on board, the politics of it should be easier. Yes, we do have to be careful of hostages. I believe that they are also raiding from “mother ships” where they also keep hostages. Maybe we could capture their families if we can figure out where they are land based, sail out to the mother ships and arrange an exchange of prisoners. Then escort the mother ship to land, and blow it up after the people depart.
With China, it is interesting to see that Commerce is now trumping ideology.
Since nobody else has taken the lead, China is slowly and cautiously stepping in. They are taking the right measured steps to become a global leader, while our current White House consistently thumbs its nose at our traditional allies and encourages our enemies.
The USofA did that very thing a couple of centuries ago and ended the Barbary pirate problem.