Optimize resource allocation for project portfolios