Register to reply 
How to optimise something when multiple parameters change the output 
Share this thread: 
#1
Mar1414, 04:45 PM

P: 202

This dilemma seems to occurs all the time in so many different engineering problems. It seems impossible to optimise something with multiple parameters, for three reasons:
Additional Details The neural network example is the problem I am currently having, but I'll give another example of this problem I have had in the past. I was trying to design a patch antenna that has a resonant frequency of 2GHz. The resonant frequency is mainly dependant on the width of the patch, and the gain of the antenna was mainly dependant on the insertion depth. In CST, I performed a sweep on the width and picked the value that gave the lowest s parameter at 2GHz, I then performed a sweep on the insertion depth and picked the value that reduces the S parameter to the lowest value (I decided that 40dB was acceptable). But this then changed the frequency at which this gain happens, so I did a sweep on the width again, and I picked the value that gave the lowest s parameter, but now the s parameter is too high again, so I optimise the insertion depth... and so on. 


#2
Mar1414, 05:19 PM

Engineering
Sci Advisor
HW Helper
Thanks
P: 7,178

I don't know much about neural networks, but I would guess selecting a good topology for a network is a practical problem that would be covered in books on the subject.
For "large scale" optimization problems, the objective is usually to get a solution that is "good enough" rather than try to fund the global optimum solution. There can be many "local" optimum solutions with not much to choose between them. If you have n variables to optimize, you can consider each set of n values as a geometrical point in ndimensional space. Visualizing how algorithms work is easy when n = 2 (e.g. draw something that looks like a contour map, and the optimum is the highest or lowest point on the map). When n > 3, drawing pictures is hard, but the math works the same way for any value of n. In general "optimizing one variable at a time" is very inefficient for the reason you discovered: the variables interact with each other. When n = 2, this is like trying to get to the top of a mountain by only moving north/south or east/west. If the mountain is a long "ridge" running from northeast to southwest, for example, that is obviously a bad plan. Better methods attempt to find "search directions" which are linear combinations of the variables, such that the interaction between the directions is small (and ideally zero). There are several wellknown algorithms for this. My personal favorite is BFGS (named from the four people who invented it). Another popular one is DFP (The "F" is the same guy in each). A different approach is to try to find a region that contains the optimum, and then subdivide it into smaller regions. One version of this the NelderMead algorithm. Yet another way is simply to try points "at random", and keep track of the best solutions. Then try new points "close" to the best solutions you have found so far. One version of this is called "simulated annealing". If you can define the function you want to optimize mathematically, all these algorithms are in systems like Matlab. If you need another software package like CST to find how "good" a particular design is, you can usually automate the process by making the optimization algorithm create the input file to run CST, run the model, and then extract the relevant data from the CST output file. Finding some course notes or a textbook on optimization is probably a better way to learn more than googling for the individual methods. 


#3
Mar1414, 05:31 PM

P: 202

Thank you for your answer! After a bit of googling and asking around I have read about the algorithms you mentioned a few times. I believe they are called heuristic algorithms? I was actually told about these at the start of my project, but I assumed that I was supposed to use these as an alternative method to train the neural network. I have implemented the Genetic Algorithm to train the neural network, and i'm now trying to optimise the network topology so that it trains better. It seems strange using the Genetic Algorithm to optimise something that will be using the Genetic Algorithm to optimise something else, but I suppose it makes sense.
As for books on neural network topology most resources I have seen suggest to only use one layer, as it has been proved that a single layer neural network is a universal approximator. This makes it easier to optimise the number of neurons as you now only have one parameter to optimize. However I had a meeting with a PHD student a few days ago who specialises in neural networks and he told me to stick with 3 hidden layers. he says he guarantees 3 hidden layers is the best for the particular problem i'm working on. (which reminds me, I need to email him and ask why he said that...) 


#4
Mar1414, 05:38 PM

Engineering
Sci Advisor
HW Helper
Thanks
P: 7,178

How to optimise something when multiple parameters change the output
But after a while, you realize that most people have personal prejudices about the "best" way to do things. Eventually, you get some prejudices of your own, and then it is obvious that people who share your prejudices are right and the others are wrong 


#5
Mar1414, 05:48 PM

P: 202

*Other books do mention optimising the topology for networks with more than one layer, but I have yet to find one which gives an exact procedure to follow that will find the optimum topology. They just mention rules of thumb, and tips, (such as use more neurons in the first few layers to create more features for subsequent layers to work with) Thats what this question was all about, methods to find the best possible solution to a problem that can't be solved by optimising one variable.
I also just wanted to know that I wasn't alone in having this problem. In class we are given projects such as "design a narrow band high gain 2GHz patch antenna", and we are taught all the science relating to the project, but never taught how to exactly go about designing it. It just frustrated me when I had to submit a design that might not have been the optimal design. 


Register to reply 
Related Discussions  
Java rule on Methods with multiple parameters  Programming & Computer Science  3  
How to optimise stiffness for a projector screen?  Mechanical Engineering  10  
Multiple input, multiple output circuit with only a signal getting through  Engineering, Comp Sci, & Technology Homework  4  
Induction to change output voltage of DC.  General Physics  1  
Least linear square fit of multiple measurements with functions sharing parameters  General Math  5 