I occasionally eat lunch alone. The "restaurant" is typically a fast food place - not a more formal setting like you describe, but I usually bring a book or have my nose in my phone. That indicates to people that I have no interest in them or anything else that's going on in the place - and that gets me ignored and left alone, the way I like.