Using Inter-scenario Data Access
Data from external scenarios can be accessed using the mminsight.scenariodata I/O driver with a standard Mosel initializations from block.
Example (in Mosel model):
declarations CITIES: set of string DRIVING_DISTANCES: array(CITIES,CITIES) of real end-declarations initializations from “mminsight.scenariodata:/DrivingDistancesModel/USDrivingDistances” DRIVING_DISTANCES as “CityDrivingDistances” end-initializations
This populates the array DRIVING_DISTANCES with the content of the array CityDrivingDistances from the scenario USDrivingDistances in the model DrivingDistanceModel.
The basic format for the
initializations from block is as follows:
initializations from “mminsight.scenariodata:<repository path>” LOCAL ENTITY_NAME_1 as “ENTITY_NAME_1_IN_EXTERNAL_SCENARIO” LOCAL ENTITY_NAME_2 as “ENTITY_NAME_2_IN_EXTERNAL_SCENARIO” LOCAL ENTITY_NAME_3 as “ENTITY_NAME_3_IN_EXTERNAL_SCENARIO” end-initializations
There is no limitation the number of external entities you can specify. To access more than one scenario, use multiple initializations from blocks.