A convex duality method for optimal liquidation with participation constraints