  In this paper, our aim is to investigate necessary conditions for optimal
investment. We model the wealth process by Backward differential stochastic
equations (shortly for BSDE) with or without constraints on wealth and
portfolio process. The constraints can be very general thanks the non-smooth
analysis method we adopted.
