A method and apparatus for dewatering of effluents through the use of automated optimization using feedback control. The method and apparatus for feedback control optimizes dewatering processes for any water cleansing process that uses retention and/or flocculation aids (e.g., polymers) to impact endpoint water clarity. Disclosed implementations include processing using dissolved air flotation (DAF) and sludge cake formation. The methodology includes real-time monitoring of turbidity and incremental control of polymer to manage changes to turbidity/suspended solids due to operating parameters such as temperature, chemical variations, and mechanical influences.