BlueM.Opt input files: Difference between revisions

From BlueM
Jump to navigation Jump to search
No edit summary
 
 
(118 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Aufrufen einer EXE-Datei==
{{BlueM.Opt_nav}}
<vbnet>
==List of input files for BlueM.Opt==
Private Sub executeExe()
 
  Dim ProcID As Integer
When performing a simulation-based optimization or sensitivity analysis (e.g. with [[BlueM.Sim]], [[TALSIM|Talsim-NG]] or [[SWMM]]), the simulation dataset has to contain the following additional input files required by BlueM.Opt:
  'Aktuelles Arbeitsverzeichnis feststellen
* '''[[MOD-file]]''': defines the model parameters
  Dim currentDir As String = CurDir()
* '''[[OPT-file]]''': defines the optimization parameters
  'gewünschtes Arbeitsverzeichnis definieren
* '''[[OBF-file]]''': defines the objective functions
  Dim workingDir As String = "Pfad\zum\Arbeitsverzeichnis"
* '''[[CON-file]]''' (optional): defines the constraints
  'zum gewünschten Arbeitsverzeichnis navigieren
 
  ChDrive(workingDir) 'nur nötig falls Arbeitsverzeichnis und aktuelles Verzeichnis auf verschiedenen Laufwerken sind
[[Category:BlueM.Opt input files|*]]
  ChDir(workingDir)
  'EXE aufrufen
  ProcID = Shell("""Pfad\zur\EXE"" Uebergabeparameter", AppWinStyle.NormalFocus, True)
  'Arbeitsverzeichnis wieder zurücksetzen (optional)
  ChDrive(currentDir)
  ChDir(currentDir)
End Sub
</vbnet>

Latest revision as of 00:11, 31 August 2020

EVO.png BlueM.Opt | Download | Usage | Development

List of input files for BlueM.Opt

When performing a simulation-based optimization or sensitivity analysis (e.g. with BlueM.Sim, Talsim-NG or SWMM), the simulation dataset has to contain the following additional input files required by BlueM.Opt:

  • MOD-file: defines the model parameters
  • OPT-file: defines the optimization parameters
  • OBF-file: defines the objective functions
  • CON-file (optional): defines the constraints