intuition, experiece, pure genius, and a bit of brilliance, aka, whenever i feel like it really though thats been on my todo list is to determine some function to optimize over, what utility function to derive, etc