Does FO output correctly when using one over x to maximize FO?

Hello, everyone!

I would like to ask you a question concerned with Wallacei X, Grasshopper. I would like to be maximize two fitness objective. So, I tested connecting them with negative component and one over x component scripts.

When I connected with one over x, I got a lot of output decimal fitness values like the attached screenshots below. But I did not want to be decimal as one of the FO value is the count of the object. Is there any way or any component scripts to be able to get the actual values of each FO. Or is negative scripts better to be maximize? If you have any better ideas, could you explain it to me?

I also attached the .gh file so that you could check it. Thank you all for always supporting! Have a good day!

WAllacei-test-edit.gh (42.2 KB)


When you calculate 1/x for an integer, the result is a decimal or fractional value. After performing optimization on these transformed values, you can reverse the process by applying 1/x again to retrieve the original scale (you need to apply round to the outputs thought). In this context, using negative values could also be an option—it depends on your specific use case

1 Like