Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9408


Ignore:
Timestamp:
04/30/13 10:57:22 (10 years ago)
Author:
gkronber
Message:

#1423: cast solution creator to IRealVector instead of RealVector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.GradientDescent/3.3/Lbfgs.cs

    r9128 r9408  
    201201
    202202    private void RegisterSolutionCreatorEvents() {
    203       var realVectorCreator = Problem.SolutionCreator as RealVectorCreator;
     203      var realVectorCreator = Problem.SolutionCreator as IRealVectorCreator;
    204204      // ignore if we have a different kind of problem
    205205      if (realVectorCreator != null) {
     
    214214
    215215    protected override void OnStarted() {
    216       var realVectorCreator = Problem.SolutionCreator as RealVectorCreator;
     216      var realVectorCreator = Problem.SolutionCreator as IRealVectorCreator;
    217217      // must catch the case that user loaded an unsupported problem
    218218      if (realVectorCreator == null)
     
    226226
    227227    private void ParameterizeOperators() {
    228       var realVectorCreator = Problem.SolutionCreator as RealVectorCreator;
     228      var realVectorCreator = Problem.SolutionCreator as IRealVectorCreator;
    229229      // ignore if we have a different kind of problem
    230230      if (realVectorCreator != null) {
Note: See TracChangeset for help on using the changeset viewer.