Optimization with galapagos

Hello All,

I am new to grasshopper and I have the following query, I am using galapagos, I want to optimize a list of values so that these are 1, so intocntre the function to minimize would be F = Abs (x-1), what I want is that x takes only values less than or equal to 1 (not larger), it is possible to make this restriction for the values that “x” can take.

Thanks in advance!

Why not cull anything that’s <=1 before feeding it into x?

It sounds good, I’ll try with that, thanks!