This is the maya version of the soft IK I learned at http://www.softimageblog.com/archives/108. I use expression for shorter demo but it works better with utility nodes. It took me some time to think about the the formula. I hope someone will find it useful too.
Demo file can be downloaded at https://goo.gl/h8K2nk.