BlueM.Opt Usage: Difference between revisions

From BlueM
Jump to navigation Jump to search
(→‎Notes: Add note for Access driver)
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{BlueM.Opt_nav}}
<div style="float:right; margin-left:10px">__TOC__</div>
<div style="float:right; margin-left:10px">__TOC__</div>
''Siehe auch:''
* ''[[EVO.NET Eingabedateien]]''
* ''[[EVO.NET Ausgabedateien]]''


==Einleitung==
==Demonstration videos==
Generelles Vorgehen:
* [[BlueM.Opt-Demo-Testproblem | Basics: demonstration using a mathematical test case]]
# Anwendung (''App'') auswählen
* [[BlueM.Opt-Demo-Sim | Simulation-based optimization: demonstration using a simulation model]]
# ggf. ''Datensatz'' auswählen
* [[BlueM.Opt-Demo-Sensiplot | SensiPlot: demonstration of sensitivity analysis]]
# ''Methode'' auswählen
* [[BlueM.Opt-Demo-Hybrid | Hybrid: demonstration of simultaneous optimization of both continuous and nominally discrete variables]]
# ggf. ''Einstellungen'' anpassen
# Start-Button drücken


==Anwendungen==
==Quickstart==
Folgende Anwendungen stehen zur Auswahl:
# Start <code>BlueM.Opt.exe</code>
* [[BlueM]]
# Select an ''[[BlueM.Opt Applications|App]]'' (e.g. BlueM.Sim)
* [[SMUSI]]
# Select an appropriate ''Dataset''
* [[S:CAN]]
# Select a ''[[BlueM.Opt Algorithms|Method]]'' (algorithm) (e.g. PES or SensiPlot)
* [[SWMM]]
# optionally adjust or load the ''[[BlueM.Opt Settings|settings]]''
* [[Testprobleme]]
# Press the ''Start'' button
* [[Traveling Salesman]]


==Methoden==
See also
===Reset===
* [[BlueM.Opt input files]]
Schreibt die Startparameter der Optimierungsparameter in die Eingabedateien des Simulationsmodells.
* [[BlueM.Opt output files]]


Erforderliche Eingabedateien:
==Notes==
* [[OPT-Datei]]
=== Dataset locations and simulation results ===
* [[MOD-Datei]]
BlueM.Opt creates copies of the dataset for carrying out the simulations. These copies are located in the directory containing <code>BlueM.Opt.exe</code> and are called <code>Thread_01</code>, <code>Thread_02</code>, etc. Once the objective function values have been calculated, the dataset together with the simulation results in these folders are deleted/overwritten.


===PES (Parameteroptimierung)===
In order to view hydrographs and/or obtain the full simulation results of specific solutions, select a solution by clicking on it in any of the diagrams and then click the button in the ''Selected solutions'' dialog. This will cause the selected solution(s) to be simulated again, but this time in a subfolder of the original dataset named "solution_X", where X is the solution ID.
[[Bild:EVO Box screenshot.png|thumb|Screenshot einer PES Optimierung (Testproblem 'Box')]]
Erforderliche Eingabedateien:
* [[OPT-Datei]]
* [[MOD-Datei]]
* [[ZIE-Datei]]
Optional:
* [[CON-Datei]]


====Einstellungen====
When using [[SensiPlot]], the setting ''Save individual datasets'' causes each indivual datasets to be simulated in a subfolder of the original dataset named "sensiplot_X", where X is the solution ID. If the aforementioned setting is deactivated, the dataset modifications and simulations are carried out using the original dataset.
{| class="standard" cellpadding="5" cellspacing="0" border="1"
|-
! Einstellung !! Optionen !! Bedeutung
|-
| rowspan="2" | '''Selektion'''<br/>(<code>EVO_STRATEGIE</code>)
| '+' (Eltern+Nachfolger) || Die Selektion erfolgt aus der Menge der Eltern und der Nachfolger
|-
| ',' (nur Nachfolger) || Die Selektion erfolgt nur aus der Menge der Nachfolger
|-
| rowspan="2" | '''Startwerte'''<br/>(<code>EVO_STARTPARAMETER</code>)
| Zufällig || Zufällige Startparameter
|-
| Originalparameter || Vorgegebene Startwerte
|-
| rowspan="2" | '''Mutation'''<br/>(<code>EVO_DNMutation</code>)
| Rechenberg || Mutation nach Rechenberg 1994
|-
| Schwefel || Mutation nach Schwefel (aktuellerer Ansatz)
|-
| '''Startschrittweite'''<br/>(<code>DnStart</code>) || 0.01 - 1 || Startschrittweite für die Parametervariation
|-
| '''mit Schrittweitenvektor'''<br/>(<code>is_DnVektor</code>) || ja/nein || bei ja bekommt jeder Parameter eine eigene Schrittweite
|-
| ... || ... || ...
|-
| rowspan="8" | '''Ermitteln der Eltern'''<br/>(<code>EVO_ELTERN</code>)<br/>Siehe Bug 262!
| Selektion || Ein Individuum wird zufällig mit allen Parametern als Elter aus dem Bestwertspeicher ausgewählt
|-
| Rekomb x/x, diskret || Jede Parameterwert-Schrittweiten-Kombination wird zufällig aus allen Individuen des Bestwertspeichers ausgewählt
|-
| Rekomb x/x, mitteln || Jede Parameterwert-Schrittweiten-Kombination wird über alle Individuen des Bestwertspeichers gemittelt
|-
| Rekomb x/y, diskret || Jede Parameterwert-Schrittweiten-Kombination wird zufällig aus y Individuen des Bestwertspeichers ausgewählt
|-
| Rekomb x/y, mitteln || Jede Parameterwert-Schrittweiten-Kombination wird aus y Individuen des Bestwertspeichers gemittelt
|-
| Rekomb x/x, dis/mitt || Jeder Parameterwert wird zufällig aus allen Individuen des Bestwertspeichers ausgewählt<br/>Jede Schrittweite wird über alle Individuen des Bestwertspeichers gemittelt
|-
| Rekomb x/y, dis/mitt || Jeder Parameterwert wird zufällig aus y Individuen des Bestwertspeichers ausgewählt<br/>Jede Schrittweite wird über y Individuen des Bestwertspeichers gemittelt
|-
| Neighbourhood || siehe Promotion Dirk Muschalla (''nur bei MultiObjective'')
|-
| '''X/_-Rekombination'''<br/>(<code>n_RekombXY</code>)
| 1 - 100 || Die Anzahl der Individuen die zur Rekombination herangezogen werden (''nur bei Rekombination x/y'')
|-
| '''Tournament Selection'''<br/>(<code>is_diversity_tournement</code>)
| ja/nein || Zur Ermittlung der zur Rekombination herangezogenen Individuen werden zunächst für jeden zu ermittelnden Elter zwei Individuen aus dem Bestwertspeicher zufällig ausgewählt. Das Individuum mit dem besseren Diversitätswert wird zum Elter. (''nur bei Rekombination x/y'')
|}


===SensiPlot (Sensitivitätsanalyse)===
=== Microsoft.ACE.OLEDB.12.0 Provider ===
[[Bild:SensiPlot screenshot.png|thumb|Screenshot einer SensiPlot Berechnung mit zwei Parametern]]
BlueM.Opt stores optimization results in a MS Access database. This requires a corresponding driver to be installed on the machine. If you have Microsoft Office installed, this driver is usually already installed. However, if you have the 32bit version of Office installed, you will have to additionally install the x64-version of the driver for BlueM.Opt, which is a x64 program, to work.
SensiPlot kann dazu benutzt werden, die Sensitivität von einem oder zwei Optimierungsparametern hinsichtlich einer Zielfunktion zu untersuchen.


SensiPlot erfordert die gleichen Eingabedateien wie PES. (Constraints werden derzeit nicht berücksichtigt: Bug 253)
A missing driver will result in the following or similar error message when setting the method:
# ''Anwendung'', ''Datensatz'' und ''Methode'' ("SensiPlot") auswählen. Es erscheint ein Dialogfenster.
<blockquote>
# Einen oder zwei ''Optimierungsparameter'' auswählen (1 Parameter &rarr; Punkt-Diagramm; 2 Parameter &rarr; Oberflächendiagramm)
The Microsoft.ACE.OLEDB.12.0 Provider is not registered on the local machine
# Eine ''Zielfunktion'' auswählen
# Auswählen, ob der/die Optimierungsparameter ''diskret'' oder ''gleichverteilt'' variiert werden sollen, und in welcher Auflösung (''Anzahl Schritte'')
# Die Option ''Wave anzeigen'' führt dazu, dass im Anschluss an SensiPlot alle durchgeführten Simulationen in Wave dargestellt werden (Vorsicht bei einer größeren Anzahl von Schritten!)<br clear="all"/>


===CES (Kombinatorische Optimierung)===
Der Microsoft.ACE.OLEDB.12.0 Provider ist nicht auf dem lokalen Computer registriert
Erforderliche Eingabedateien:
</blockquote>
* [[CES-Datei]]
* [[ZIE-Datei]]
Optional:
* [[CON-Datei]]


===PES + CES===
To fix this, download and install <code>AccessDatabaseEngine_X64.exe</code> from here: https://www.microsoft.com/en-US/download/details.aspx?id=13255
''TODO''


===Hybrid===
<!--
''TODO''
=== Using a custom version of Talsim ===
Currently, Talsim-NG v3.0.1.6 is included in BlueM.Opt and is located under <code>\TALSIM\talsimw64.exe</code>. To use a custom version of Talsim, edit the <code>user.config</code> file located in the following location: <code>C:\Users\[USERNAME]\AppData\Local\BlueM_Dev_Group\BlueM.Opt.exe_Url_[]\[version]\user.config</code> and change the value of the setting <code>TALSIM_path</code> to contain the path to the desired custom Talsim executable. Restart BlueM.Opt in order for the chage to take effect.
-->


===Hooke and Jeeves===
[[Category:BlueM.Opt Usage|*]]
Hillclimbing Algorithmus
 
Erforderliche Eingabedateien:
* [[OPT-Datei]]
* [[MOD-Datei]]
* [[ZIE-Datei]]
Optional:
* [[CON-Datei]]
 
[[Kategorie:EVO]]

Latest revision as of 03:52, 17 November 2022

EVO.png BlueM.Opt | Usage | Development

Demonstration videos

Quickstart

  1. Start BlueM.Opt.exe
  2. Select an App (e.g. BlueM.Sim)
  3. Select an appropriate Dataset
  4. Select a Method (algorithm) (e.g. PES or SensiPlot)
  5. optionally adjust or load the settings
  6. Press the Start button

See also

Notes

Dataset locations and simulation results

BlueM.Opt creates copies of the dataset for carrying out the simulations. These copies are located in the directory containing BlueM.Opt.exe and are called Thread_01, Thread_02, etc. Once the objective function values have been calculated, the dataset together with the simulation results in these folders are deleted/overwritten.

In order to view hydrographs and/or obtain the full simulation results of specific solutions, select a solution by clicking on it in any of the diagrams and then click the button in the Selected solutions dialog. This will cause the selected solution(s) to be simulated again, but this time in a subfolder of the original dataset named "solution_X", where X is the solution ID.

When using SensiPlot, the setting Save individual datasets causes each indivual datasets to be simulated in a subfolder of the original dataset named "sensiplot_X", where X is the solution ID. If the aforementioned setting is deactivated, the dataset modifications and simulations are carried out using the original dataset.

Microsoft.ACE.OLEDB.12.0 Provider

BlueM.Opt stores optimization results in a MS Access database. This requires a corresponding driver to be installed on the machine. If you have Microsoft Office installed, this driver is usually already installed. However, if you have the 32bit version of Office installed, you will have to additionally install the x64-version of the driver for BlueM.Opt, which is a x64 program, to work.

A missing driver will result in the following or similar error message when setting the method:

The Microsoft.ACE.OLEDB.12.0 Provider is not registered on the local machine

Der Microsoft.ACE.OLEDB.12.0 Provider ist nicht auf dem lokalen Computer registriert

To fix this, download and install AccessDatabaseEngine_X64.exe from here: https://www.microsoft.com/en-US/download/details.aspx?id=13255