 # Meeting two values in the middle with Galapagos

Hi there,

I am fairly new to using galapagos. I have two sets of data, and I would like the resulting number to meet in the middle, basically trying to get the two numbers as close as possible(see the attached image).

Trying to test this on a small architectural project. Basically trying to find the sweet spot on parking vs. building area.

I tried working with individual data sets, but under “fitness”, there is only maximize and minimize options.Any suggestions on how I can get started with this?

If you want to maximize “A” and simultaneously minimize “B” you can maximize “C” where C=A/B … or something like that.
You can change the “weight” of the values by using powers, like: C=(A^2)/(B^0.5).
You can also use addition and subtractions, like: C=A-B
Or even mixed formulas like: C=(A-B)*(A/B)

In your case you want the difference between the two values to go near zero.
So make C=Abs(A-B) and set it so it minimize C 3 Likes

Perfect, I will give it a try and see how everything goes.

Thank you!

Just tested it and it works flawlessly based on those two numbers. However, is it possible to maximize a number, while still trying to keep the difference between “A” and “B” to almost 0? Or do I have to somehow work that into my equation for galapagos?(see attached image)

Nevermind, I was able to work that number into the equation and it works.

Thank you very much again!