ContentsIndexHome
PreviousUpNext
aimms::createDefaultConfig Function

Creates an IConfig, with all members on default. It can be used, potentially modified, to open a session with a different configuration. 

 

C++
AIMMSSDK_API extern IConfig* createDefaultConfig();

The created IConfig

 

For example, you might want to add additional commandline arguments for starting up AIMMS:

IConfig* cfg = aimms::createDefaultConfig();
cfg->setAimmsCommandLine("--user john:mypasswd");

ISession* session = aimms::createSession(
     "tcp://localhost:5432/aimms-3.11",
     "myproject.prj",
     cfg);