harbor run -t openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-7408harbor download openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-7408Task Description: Implement an Ant Colony Optimization (ACO) Settings Verification and Execution Functionality
Implement the functionality for the ACOSettings struct and the ACO function to support ant colony optimization simulations in the provided Go test code. Follow these specific requirements to ensure that the tests pass:
Define the ACOSettings struct:
Evaporation float64: Represents the evaporation rate of pheromones, which must be between 0.0 (exclusive) and 1.0 (inclusive).MaxIterations int: Represents the maximum number of iterations for the algorithm, which must be a positive integer.Verbose int: Represents the verbosity level for logging (can be any non-negative integer).KeepHistory bool: A boolean indicating whether to keep a history of performances.Implement the Verify method for ACOSettings:
Evaporation value is less than or equal to 0.0 or greater than 1.0.MaxIterations is less than or equal to 0.Define the ACO function:
Ant and an ACOSettings struct.ACOSettings fail verification (using Verify), it should return an error.MaxIterations.AveragePerformances and BestPerformances for the ants.KeepHistory is true.Iterations intAveragePerformances []float64BestPerformances []float64BestAnts []AntEnsure that the solution is placed in the /app/ directory.
Once implemented, run the provided tests to verify that the functionality adheres to the requirements and passes all the assertions.
Important: declare your solution in package hego (the test file uses package hego, so the implementation must use the matching package name).