Nickel Titanium (NiTi) shape memory alloys (SMAs) exhibit shape memory and/or superelastic properties, enabling them to demonstrate multifunctionality by engineering microstructural and compositional gradients at selected locations. This paper focuses on the design optimization of NiTi compliant mechanisms resulting in single-piece structures with functionally graded properties, based on user-defined target shape matching approach. The compositionally graded zones within the structures will exhibit an on demand superelastic effect (SE) response, exploiting the tailored mechanical behavior of the structure. The functional grading has been approximated by allowing the geometry and the superelastic properties of each zone to vary. The superelastic phenomenon has been taken into consideration using a standard nonlinear SMA material model, focusing only on 2 regions of interest: the linear region of higher Young's modulus of elasticity and the superelastic region with significantly lower Young's modulus of elasticity. Due to an outside load, the graded zones reach the critical stress at different stages based on their composition, position and geometry, allowing the structure morphing. This concept has been used to optimize the structures' geometry and mechanical properties to match a user-defined target shape structure. A multi-objective evolutionary algorithm (NSGA II - Non-dominated Sorting Genetic Algorithm) for constrained optimization of the structure's mechanical properties and geometry has been developed and implemented.