Originally posted by: mathygirl
I've tried both a relative path and an absolute path.
When I run from the command line, both relative and absolute paths to the data directory work.
The relative path is taken with respect to the directory where the model that contains the "main" block is run.
So, if I place the data directory, "data", in the same folder where the model is located, the following working from the command line:
string input = "data";
main {
thisOplModel.generate();
IloOplImportJava("myJar.jar");
IloOplCallJava("myPackage.myClass", "myMethod", "", thisOplModel.input);
}
The absolute path also works from the command line:
string input = "C:\\<pathToModelDir>\\data";
main {
thisOplModel.generate();
IloOplImportJava("myJar.jar");
IloOplCallJava("myPackage.myClass", "myMethod", "", thisOplModel.input);
}
This same code doesn't work in the IDE.
#DecisionOptimization#OPLusingCPLEXOptimizer