Objective
The package supports symbolic objectives built from registered parameters and
variables. Objectives are required for optimize() and optional for
model() and estimate().
Examples
model.objective = 0.5 * (y.y1**2 + y.y2**2 + y.y3**2)
model.objective = (
0.5 * (y.y1**2 + y.y2**2)
+ model.exp(y.y1)
+ x.x1 * y.y2
)