Text this: A Day-ahead Centralized Unit Commitment Algorithm for A Multi-agent Smart Grid