1. implemented the material optimization method using gradient. 2. add partial constraints using AD.