Text this: Portfolio optimization problems : a martingale and a convex duality approach