This function seems awesome but it should exclude the value 0 when max quality is reachable without concentration.
The point is to maximize the value of concentration, but in this edge case it does the opposite of that, and usually suggests a negative profit craft.