Workspace Optimization In Smart Buildings