The objective function for your system emerges automatically.
It is likely not what you think it is... or perhaps even directly at odds with your stated goal.
It is likely not what you think it is... or perhaps even directly at odds with your stated goal.