Originally posted by: StephenHall
Hi guys,
What would you recommend to activate part of the preprocessing.
The "if" statement is only valid for the constraint or in the OPL script". But not in OPL itself.
The problem is the following, For a model i have 2 ways of populating it:
-
from a Database. The preprocessing is done in OPL. The database connection is defined in the .dat
-
from Database. The preprocessing is done in OPL. The database connection is defined in the ODMapp
-
from Java calling OPLrun. There the preprocessing is done in Java because it is faster and more convenient.
What would be your recommendations to handle multiple model variation from the pre and post processing viewpoint?
my thought:
-
call a "include" statement with different .mod. COuld be to assign a string variable the name of the .mod to call from a OPLScript with "if" statement
-
use a if statement in .dat if possible
Thank you for your help
#DecisionOptimization#OPLusingCPLEXOptimizer