/
GeekNerd
/
ServerModelingProject
Обзор
Документация
Войти
/
GeekNerd
/
ServerModelingProject
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Assets/Scripts/DataClasses/Algorithm/GaSettings.cs
30 строк
910 B
Gorney-Alex
Init
30 май 2026, 19:05
30 май 2026, 19:05
3cdcc49
Код
Авторство
О чём код?
using System; namespace DataClasses.Algorithm { [Serializable] public class GaSettings { // Core GA parameters public int PopulationSize; public int Generations; public float MutationRate; public float CrossoverRate; public int EliteCount; public int EarlyStopGenerations; public float MaxTempDelta; // TZ parameters (kept optional for compatibility with existing JSON) public int TournamentSize = 5; public float InitMutationProb = 0.35f; public int RandomSeed = 12345; // Default weights (must sum to 1). Used when JSON omits weight fields. public float WeightPlacement = 0.30f; public float WeightThermal = 0.25f; public float WeightAisle = 0.15f; // TZ: topology weight public float WeightTopology = 0.30f; } }