Ignore:
Timestamp:
02/02/18 16:31:42 (4 years ago)
Author:
abeham
Message:

#1614:

  • added additional constraint to benchmark data generator and updated one instance that was affected by this
  • added fitness landscape characteristics for the GQAP
  • fixed RLD analysis view to compensate for empty convergence graphs
  • fixed CPLEX solvers not using the obj value when the solver terminates (callback is not called if proven optimal solution is found)
  • added code for local solver to also check on final quality
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/CPLEX/CplexSolver.cs

    r15700 r15713  
    6868        opl.AddDataSource(dataSource);
    6969        opl.Generate();
    70         cplex.Solve();
     70        if (cplex.Solve()) {
     71          var obj = cplex.ObjValue;
     72          if (double.IsNaN(Context.BestQuality) || obj < Context.BestQuality)
     73            Context.BestQuality = obj;
     74          IResult result;
     75          if (Results.TryGetValue("BestQuality", out result))
     76            ((DoubleValue)result.Value).Value = Context.BestQuality;
     77          else Results.Add(new Result("BestQuality", new DoubleValue(Context.BestQuality)));
     78
     79          Context.RunOperator(Analyzer, CancellationToken.None);
     80        }
    7181        cplex.End();
    7282      }
Note: See TracChangeset for help on using the changeset viewer.