Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The RiverSystem.CommandLine.exe provides a mechanism to run existing projects without the Source interface. It is possible to modify or change the behaviour of the project from the command line, by changing the values of functions. Results can be returned for recorded items or functions within the project.

RiverSystem.CommandLine.exe is included with Source.

...

Figure 1 illustrates the process of manipulating the operating target for a storage from the command line, in this case, manipulating a function, $x. This must first be specified in terms of an expressiona function, which must reference $x. functions Functions can be used to manipulate the model in this way, either before the start of the simulation, or before each time-step.

...

  • Standalone mode – the project loads; the simulation runs with a single line command:
Code Block
RiverSystem.CommandLine.exe -p C:\Temp\ExampleProject.rsproj
  • Client/server mode – one command line runs projects. It does anything except for loading a project until a second command line is run in client mode. In this way, multiple runs can be completed with the server loading the project only once. It also enables the server to run on a different machine to the client. The examples provided assume a client/server mode, illustrating the calls made by the client. They could also work in standalone mode. Refer to Advanced configuration options for two options available in this mode.

...

  • Set the values: 

    Code Block
    RiverSystem.CommandLine.exe -m Client -v "$metaParam=2.5" 


  • Set multiple expressionsparameter values:
Code Block
RiverSystem.CommandLine.exe -m Client -v "$metaParam=2.5" -v "$anotherMetaParam=3.0".

...

Additional examples of running Source using a DOS batch file, a Python script or an R script can be found here.

 

Client Server interaction

...