Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/12 10:54:36 (12 years ago)
Author:
abeham
Message:

#1614

  • Investigation in different solution creator that result in feasible solutions even for 95% fill level instances
  • Added option for all solution creators to produce the least infeasible solution if no feasible solution could be found
  • Added maximum tries parameter to all creators
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/SolutionCreators/RandomSolutionCreator.cs

    r7523 r7593  
    4040    }
    4141
     42    public static IntegerVector CreateSolution(IRandom random, DoubleArray demands, DoubleArray capacities) {
     43      return UniformRandomIntegerVectorCreator.Apply(random, demands.Length, 0, capacities.Length);
     44    }
     45
    4246    protected override IntegerVector CreateRandomSolution(IRandom random, DoubleArray demands, DoubleArray capacities) {
    43       return UniformRandomIntegerVectorCreator.Apply(random, demands.Length, 0, capacities.Length);
     47      return CreateSolution(random, demands, capacities);
    4448    }
    4549  }
Note: See TracChangeset for help on using the changeset viewer.