ContentsIndexHome
PreviousUpNext
IConfig.setAimmsCommandLine Method

Sets the additional AIMMS commandline arguments with which to startup the project; see also the AIMMS User's Guide. The AIMMS SDK will always startup the AIMMS host with an equivalent of the --as-server options. 

By default, no other commandline options are used. You should not provide the project name here. 

 

Java
void setAimmsCommandLine(String AimmsCommandLine);
Parameters 
Description 
String AimmsCommandLine 
The AimmsCommandLine.
 

Not all command line options (see the AIMMS User's Guide chapter on "Calling AIMMS") are applicable when using the SDK. 

 

Not applicable:

  • Options to adjust the screen size, such as '--minimized' and '--hidden'; the '--as-server' option is always added.
  • The command to only run a single procedure: '--run-only'.
  • The user modes '--developer' and '--end-user': the model is always run in end-user mode.

 

Please note:

  • The -- prefix (for long option names) or - prefix (for short option names) should be supplied in the string.
  • If providing a username with the '--user' option, you should always provide the password as well. For example, "--user john:mypass".
  • The 'license-wait-seconds' is independent of the IConfig setting 'TimeOut', but they do influence the way your application interacts with AIMMS. For example, setting the TimeOut to 2 seconds while the license-wait-seconds is set to 7 seconds, the effect will be that the openSession method will throw an exception after 2 seconds even if after 4 seconds the license would have been retrieved.