How to take negative of the neural network function for maximization?
I have created a neural network in matlab using the nntool and now I using the trained neural network as a fitness function for my genetic algorithm to maximize the output of my function given 3 input variables. Optimization in matlab is by default used for minimization but as i want to maximize my function i understand that I need to take negative of the function but I am not able to take a negative of the neural network function as we do for normal functions.I have created a neural network in matlab using the nntool and now I using the trained neural network as a fitness function for my genetic algorithm to maximize the output of my function given 3 input variables. Optimization in matlab is by default used for minimization but as i want to maximize my function i understand that I need to take negative of the function but I am not able to take a negative of the neural network function as we do for normal functions. I have created a neural network in matlab using the nntool and now I using the trained neural network as a fitness function for my genetic algorithm to maximize the output of my function given 3 input variables. Optimization in matlab is by default used for minimization but as i want to maximize my function i understand that I need to take negative of the function but I am not able to take a negative of the neural network function as we do for normal functions. genetic algorithm, neural network, optimization, functions, ga, matlab MATLAB Answers — New Questions