Optimization Plug-In for Grasshopper: How to use Galapagos' interface and gene pool?

Just from looking at this code, I think that the problem is that you’re not updating fx.