private List <HardConstraint> initializeHardConstraints()
        {
            var config           = new RoleCompositionConstraintConfig(2, 5, 5, 3);
            var roleComposition  = new RoleCompositionConstraint(config);
            var teamComposition  = new TeamCompositionConstraint(2);
            var teamCost         = new TeamCostConstraint(1000);
            var playerUniqueness = new PlayerUniquenessConstraint();

            return(new List <HardConstraint>()
            {
                roleComposition, teamComposition, teamCost, playerUniqueness
            });
        }
Exemple #2
0
        private List <HardConstraint> initializeHardConstraints()
        {
            var config           = new RoleCompositionConstraintConfig(1, 1, 3, 5, 3, 5, 1, 3);
            var roleComposition  = new RoleCompositionConstraint(config);
            var teamComposition  = new TeamCompositionConstraint(MAX_PLAYERS_PER_TEAM);
            var teamCost         = new TeamCostConstraint(MAX_BUDGET);
            var playerUniqueness = new PlayerUniquenessConstraint();

            return(new List <HardConstraint>()
            {
                playerUniqueness,
                roleComposition,
                teamComposition,
                teamCost
            });
        }