Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/18 00:22:00 (7 years ago)
Author:
abeham
Message:

#1614: fix loading of problem instance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1614_GeneralizedQAP/GQAPSolver/Program.cs

    r15890 r15904  
    143143        var prob = alg.Problem as GQAP;
    144144        if (prob == null) alg.Problem = prob = new GQAP();
    145         prob.Load(provider.LoadData(descriptors[opts.InstanceId-1]));
     145        prob.Load(provider.LoadData(descriptors.Single(x => x.Name == opts.ProblemInstance)));
    146146        alg.Start();
    147147        avgBest += ((DoubleValue)alg.Results["BestQuality"].Value).Value;
Note: See TracChangeset for help on using the changeset viewer.