vladofilipovic / universal-optimizer

Universal otimizer library
Apache License 2.0
1 stars 3 forks source link

solve bug within VNS execution #34

Closed vladofilipovic closed 1 year ago

vladofilipovic commented 1 year ago

debug configuration:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": true,
            "args": [
                "vns",
                "maximization",
                "--writeToOutputFile", "True",
                "--outputFilePath", "opt/single_objective/trivial/max_ones_problem/outputs/dimension_77.csv",
                "--outputFields", "iteration, evaluation, best_solution.string_representation()",
                "--outputMoments", "after_algorithm, after_iteration",
                "--inputFilePath", "opt/single_objective/trivial/max_ones_problem/inputs/dimension_77.txt", 
                "--inputFormat", "txt",
                "--maxNumberIterations", "500",  
                "--maxTimeForExecutionSeconds", "0",
                "--randomSeed", "0", 
                "--evaluationCacheIsUsed", "False", 
                "--calculationSolutionDistanceCacheIsUsed", "False", 
                "--keepAllSolutionCodes", "False",
                "--kMin", "1",
                "--kMax", "3", 
                "--maxLocalOptima", "5", 
                "--localSearchType", "local_search_best_improvement",
                "--solutionType", "BitArray"
                ]        
        }
    ]
} 

result should be 77, not 42