heal-research / HeuristicLab

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

Ordering of types in TypeSelector and NewItemDialog does not match #2550

Open HeuristicLab-Trac-Bot opened 8 years ago

HeuristicLab-Trac-Bot commented 8 years ago

Issue migrated from trac ticket # 2550

milestone: HeuristicLab 4.x Backlog | component: Optimizer | priority: medium

2015-12-22 16:41:41: @NimZwei created the issue


Because the NewItemDialog orders items according to the CreatableAttribute, items are differently ordered than in the "similar" TypeSelector.

This leads to odd behavior when entering common abbrevations in those two similar dialogs . The same inputs create different items in some cases.

For instance, when creating a Traveling Salesman Problem with the NewItemDialog, one can simply enter "TSP" and hit enter. When setting the problem of an existing algorithm, the TypeSelector preselects the Analytical Probabilistic Traveling Salesman Problem on the same input.

Do we want to change this behavior? Assigning a ordering to all items, like in the CreatableAttribute would be an overkill. Maybe the TypeSelector should take the ordering from the CreatableAttribute? However, then the results of the TypeSelector would not be ordered by name any more.

HeuristicLab-Trac-Bot commented 8 years ago

2015-12-23 10:03:16: @abeham commented


I think this is a valid, but minor problem.

However, the problem is only apparent for the new problem button in the algorithm view. The reason is that you want to create a subset of the types available in the NewItemDialog there. In other views that use the TypeSelector the set of types are more diverse. Thus I would not advise to change the TypeSelector in general.

My suggestion would be to reuse the NewItemDialog when clicking on the new problem button and extend it to include the necessary filtering options that are required.