Can someone please help me on how to link an already trained ANN with an optimization algorithm??
I am finding a lot of stuff online on training ANN using the optimization algorithm. But I don't want that. I am working on a different strategy.
First, a neural network has been trained to predict multiple outputs (regression for (i) antenna multiband frequencies, (ii) return loss at these frequencies, (iii) bandwidth at these frequencies, (iv) gain at these frequencies and (v) directivity at these frequencies.
The weights and bias for the trained ANN have been obtained.
Next, I have framed a set of objective functions for my optimization code. For example:
FF1: (2.4- f1)^2 + (5.2- f2)^2 + (8.5- f3)^2 + (32-f4)^4
FF2: (-20 + RC1)^2 + (-20 + RC2)^2 + (-20 + RC3)^2 + (-20 + RC4)^2
FF3: (1.5 - B1)^2 + (2 - B2)^2 + (0.5 - B3)^2 + (1.3 - B4)^2
FF4: (2 - G1)^2 + (3 - G2)^2 + (1 - G3)^2 + (3 - G4)^2
FF5: (2 - D1)^2 + (1.1 - D2)^2 + (0.5 - D3)^2 + (1.3 - D4)^2
Here FF1 is the fitness function for the four frequencies (f1 to f4) of the antenna, FF2 is the fitness function for the return loss (RC1 to RC4) at the four frequencies (f1 to f4) of the antenna, FF3 is the fitness function for the bandwidths (B1 to B4) at the four frequencies (f1 to f4) of the antenna, FF4 is the fitness function for the gain (G1 to G4) at the four frequencies (f1 to f4) of the antenna, and FF5 is the fitness function for the directivity (D1 to D4) at the four frequencies (f1 to f4) of the antenna, respectively.
In order to minimize these 5 objective functions, I want the optimization code to search within the trained ANN and then provide solution. Does someone have a code of this sort and can you explain me its functioning??