Finding the right combination of these elements is what hydroponics farmers do everyday, pushing the limits of their crop for maximum quality/yield. We are starting to see a big shift in hydroponic fertilizers from liquid to powder since nobody wants to pay for shipping water.
I highly recommend https://github.com/kizniche/Mycodo for anyone doing anything in hydroponics.