I need to write a script to define the upper and the lower bounds for a genetic optimization using functions scripts. Each function (for Upper and Low bound) we be handled in the main program.
i think i will join Mohsen Azimi and said no u can't and the Reason is u need to define your searching area first and then poursuit the optimization. however, if u allow me i have few questions and quiries
why u want to do so ? imean change the Boundary u can just rize the searching area to cover more possibility
why not to try change in the crossover and mutation ?
you can modify the search space of your GA. See for example "Linear adjustment of a search space in genetic algorithm" by Amirjanov and Sadikoglu and the cited literature.
My understanding of your question is to find the minima and maxima of some given data.
To achieve this, you need to write a fitness function that will allow you to find them. I would recommend you using more statistics than min and max though
Patricia Ryser-Welch Mohsen Azimi thank you for your response. My question need for more details,
My Goal is to create theses bounds in a dynamical way so for each chosen variable X ( to be searched based on the objective function) in the GA functions will create the appropriate bounds for it.
If you are not relying on Matlab for the actual implementation of the GA, you might consider to switch to Python instead. Within the DEAP package they offer a lot of tailored algorithms.