example with auodiff plus smoothness constrain

Change-Id: I2828473dff69ab4d2ecbd1659666a3e5349202b2