1) modified the file structure of beam model. 2) add scripts for precompution. 3) optimize only one scalar for ak, am using auto-diff.