Main Content

Define Objective Function

Define the function to minimize or maximize, representing your problem

Define your objective function (called a fitness function for the ga solver) as an anonymous function or function file. The examples show how to write a function and how to pass extra parameters, if necessary.

Topics