Opened 16 months ago

Last modified 2 months ago

#2524 accepted feature request

It should be possible to pause BasicAlgorithms

Reported by: jkarder Owned by: jkarder
Priority: medium Milestone: HeuristicLab 3.3.15
Component: Optimization Version: 3.3.14
Keywords: Cc:

Description

BasicAlgorithms can only be prepared, started and stopped, not paused/resumed.

Change History (13)

comment:1 Changed 16 months ago by jkarder

  • Status changed from new to accepted

comment:2 Changed 16 months ago by jkarder

comment:3 Changed 16 months ago by jkarder

r13378: made BasicAlgorithm pausable

comment:4 Changed 15 months ago by ascheibe

  • Owner changed from jkarder to ascheibe
  • Status changed from accepted to reviewing

comment:5 Changed 9 months ago by ascheibe

  • Owner changed from ascheibe to mkommend

comment:6 Changed 4 months ago by jkarder

  • Milestone changed from HeuristicLab 4.0 to HeuristicLab 3.3.15

comment:7 Changed 4 months ago by mkommend

  • Owner changed from mkommend to jkarder
  • Status changed from reviewing to assigned

comment:8 Changed 3 months ago by jkarder

  • Status changed from assigned to accepted

comment:9 Changed 3 months ago by jkarder

  • Version changed from branch to 3.3.14

Disregard r13371 and r13378. I will implement this directly in the trunk.

comment:10 Changed 3 months ago by jkarder

r14517: made BasicAlgorithm pausable

comment:11 Changed 3 months ago by mkommend

r14523:

  • Renamed pausable to SupportsPause
  • Changed SupportsPause field to abstract property that has to be implemented
  • Stored initialization flag in BasicAlgorithm
  • Changed CancellationToken access to use the according property
  • Adapted HillClimber to new pausing mechanism
  • Disabled pause for PPP, because it does not work correctly
  • Derived FixedDataAnalysisAlgorithm from BasicAlgorithm
  • Changed base class of all data analysis algorithm from BasicAlgorithm to FixedDataAnalysisAlgorithm

comment:12 Changed 3 months ago by jkarder

r14527:

  • made sure that P3 results are updated after cancellation
  • fixed unit tests to also call Initialize

comment:13 Changed 2 months ago by abeham

  • Changed SupportsPause field to abstract property that has to be implemented

Why not virtual and default to false?

Note: See TracTickets for help on using tickets.