One may not be able to mathematically ensure optimal operation but you can certainly "make sense" of the requests.
Surely you read the inputs and only include the pedestrian crossings in the lighting sequence if the buttons are activated. Unless you're halting the traffic for some ulterior flow management need.
As for non-interrupt raising buttons - the "WAIT" light should show to indicate the button isn't required to be pressed.
Lastly, some crossings in the UK have what appear to be cameras (I assumed some form of wide angle IR sensor) facing the pedestrians. I assumed these could provide input as to density of pedestrians waiting in order to balance flow of pedestrians vs. road traffic. Anyone know certainly what they're for?
That works for a pedestrian crossing, but not where we have two lanes of cars crossing.
Or if you think in more complicated crossings like O'Connell Bridge in Dublin, there's probably no way the buttons could have any input in the lights there without messing the traffic.
Not sure what the cameras you mentioned do, maybe it's the usual "Big Brother" cameras
At a junction it is more complicated."
That's all you need to know.
I've been to places where the 1st case applies. Press the button, the car signal turns yellow immediately (light traffic and light pedestrian traffic)
At a crossing, let's see, you got there and you pressed the button, then another person came and pressed the button to cross the other street (meaning, traffic where you want to cross)
No system can make sense of these requests, and the traffic has to flow. Makes sense to just go through the movements and ignore the buttons.