Last change
on this file since 15762 was
9166,
checked in by fschoepp, 12 years ago
|
#1888:
- Model: OptimizationScenario may be a tree of algorithms (and problems)
- Model: Renamed InputParameters to ProblemParameters (as they are the parameters of a problem)
- Model: Added JobExecutionDetails which contain Repetitions + Group (resource to use)
- ScenarioParser parses the new XML scenario files
- Website + Model: You are now able to add/remove rows from a table (no JavaScript involved yet)
- Website + Controller: Added repetitions (enables batch jobs) and group (resource to use) to OaaS which will be used by the controller to schedule the job
- Website: Updated templates to use new model structure
- Website + Scenarios: Added the new algorithm Benchmark Algorithm
- Controller: Added a singleton to make the (Azure/Mockup)-DAL exchangeable
- Controller: Added mockup classes for DAL + IScenarioManager
- Website/Result Page: Line Diagrams will be added via JavaScript, crawling their data using AJAX
- Website: Most configuration parameters can be set in the ServiceDefinition directly
- Added a mockup for the Membership classes: These can be used if no network connection is available or if other parts of the app shall be tested
- Scenarios: Updated TSP mappings to new xsd
|
File size:
596 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Data;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Services.Optimization.ControllerService.Model {
|
---|
8 | public static class HiveMapper {
|
---|
9 | public static double FindDoubleValue(this ProblemParameters ip, string what) {
|
---|
10 | foreach (var param in ip.Items) {
|
---|
11 | if (param.Value.Name == what) {
|
---|
12 | var dv = param.Value as DecimalValue;
|
---|
13 | //DoubleValue result = new DoubleValue(dv.Value);
|
---|
14 | return dv.Value;
|
---|
15 | }
|
---|
16 | }
|
---|
17 | return 0.0;
|
---|
18 | }
|
---|
19 | }
|
---|
20 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.