Originally posted by: SystemAdmin
[fwagner@Ilog.fr said:]
The model library example [tt]C:\ILOG\OPL611\examples\opl\models\Prodplan\totalprod.mod[/tt] shows how to do flow control scripting with .dat files.
Basically you instanciate your OPL models like:
var source = new IloOplModelSource("period.mod");
var def = new IloOplModelDefinition(source);
var dates = new IloOplModel(def, cplex);
var data = new IloOplDataSource("period.dat");
dates.addDataSource(data);
dates.generate();
#DecisionOptimization#OPLusingCPLEXOptimizer