• Cost functions quantify things that we want to minimize, or maximize. These should be aligned with system objectives. Typical cost functions include,
• Systems also have constraints that limit available solutions
• Expressed as a function of variables that provides a value
• Consider the example of building a fenced pasture. In this case when the area becomes too large, there is a reduced value. We want to maximize the value of V.
• The cost function can be written as..
• Constraints are boundaries that cannot be crossed.
• Example of constraints, the pasture cannot be larger than one 1600m be 1600m beacuse of the constraints of an existing road system.
• The cost function can be written as..
• Slack variables allow constraints to be considered as part of the cost function. Helps with a system with many local minimum.
• The cost function can be written as..