thanks for reply! I'm adding cost using the AddCost API. But specifically, there are L1NormCost, L2NormCost, QuadraticCost, and some other cost classes in drake. I'm trying to find out how construct a cost in my problem and impose it using AddCost.