I want to create a new objective function but i do not know which code should be used.
For example, i want to have an objective function to minimize interface failure with an equation f = sum of normal stress * shear stress from each element.
Thank you