My real system (buck converter) can only take an input of 0 to 1 (duty ratio) from the PID controller output for the circuit due to it simulating reality (can't have negative or above 1 duty ratio in reality).
How can I constrain the PID controller output so that the genetic algorithm only looks at a controller output of 0 to 1 instead of -inf to inf?