heal-research / HeuristicLab

HeuristicLab - An environment for heuristic and evolutionary optimization
https://dev.heuristiclab.com
GNU General Public License v3.0
39 stars 16 forks source link

Changing engine on unsupported algorithm/problem configuration crashes HL #1842

Open HeuristicLab-Trac-Bot opened 12 years ago

HeuristicLab-Trac-Bot commented 12 years ago

Issue migrated from trac ticket # 1842

milestone: HeuristicLab 3.3.x Backlog | component: Core | priority: medium

2012-05-04 14:39:52: @epitzer created the issue


When configuring an engine first with a valid problem, changing it later to an unsupported problem leaves the algorithm in "prepared" state which causes problems when changing the engine as the state of the new engine is not reflected in the GUI.

Steps (for example):

  1. create new Tabu Search algorithm
  2. set problem to new Traveling Salesman Problem
  3. set problem to new Vehicle Routing Problem
  4. change the engine
  5. click on start
System.InvalidOperationException: Start not allowed in execution state "Stopped".
   at HeuristicLab.Core.Executable.Start() in c:\Users\P40031\workspace\hl3\trunk\sources\HeuristicLab.Core\3.3\Executable.cs:line 86
   at HeuristicLab.DebugEngine.DebugEngine.Start() in c:\Users\P40031\workspace\hl3\trunk\sources\HeuristicLab.DebugEngine\3.3\DebugEngine.cs:line 178
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
HeuristicLab-Trac-Bot commented 12 years ago

2012-06-01 19:52:38: @abeham changed milestone from HeuristicLab 3.3.7 to HeuristicLab 3.3.x Backlog