Documente Academic
Documente Profesional
Documente Cultură
Apps
Model script file and catalog information (.xml)
Inputs
All inputs (scenario specific, fixed inputs)
Outputs
Empty and used to store fixed outputs when model is run
CCS exporter does not recognize scenario specific inputs (it worries it cant find them all to export). Use file keys
e.g., FILEI ZONEI[1]={zonedata}
CCS exporter will copy these files to the Inputs folder The CCS model script will be updated as
FILEI RECI = {SCENARIO_DIR}\Inputs\MC_PAR.DBF
CCS user will not be able to update a new version or edit this file
If this is a problem, use a file key to input this file
Use a user defined key for these types of files or reference these files using {CATALOG_DIR} key.
e.g., READ FILE ="{ACCESS}"
Warning. The following Internal "FILE=" entries are present in the model. They have been associated with the VOYAGER command shown below, and copied to the appropriate folder. Note that for CCS Publish, the best and safest approach is to avoid use of FILE=,and use an alternative VOYAGER construct if available; e.g. for PRINT commands, use PRINTO=.
CCS model run will output these files to the outputs (working) directory unless the file is made scenario specific. Subsequent steps reading these files internally will fail in CCS. Output all scenario specific files directly to {SCENARIO_DIR}
e.g., FILEO MATO[1] = "{SCENARIO_DIR}\OUTPUT.MAT
Program2-Matrix:
READ FILE = "{SCENARIO_DIR}\READ_OUT.PRN
It is a good practice to directly link output files to inputs in subsequent programs rather than reading internally
CCS exporter does not accept any keys (other than {CATALOG_DIR}) in file PATH of FILEI statements.
Error: The following files have Keys in their Path. This construct is incompatible with CCS.
Use the {CATALOG_DIR} key to refer to this file as shown below or use file keys as discussed above
FILEI MATI[1] = "{CATALOG_DIR}\Base\Input\AllWalk.MAT"
File Tokens
File references using tokens
e.g., READ FILE = "@CPI_FILE@"
CCS exporter does not give any warnings or errors CCS model script is updated to read
READ FILE = {CATALOG}\OUTPUTS\@CPI_FILE@
Built-in user programs will work without any problems in CCS (because they are simple dos commands).
All input files and output files to/from the user program should be referenced to the {SCENARIO_DIR} Update any control files/input files with file paths Execute the user programs from {SCENARIO_DIR}
System Commands
Any MS-DOS system commands
e.g., COPY, DEL etc.
It is recommended to copy the individual files using one copy command for each file as shown below.
E.g., *COPY {SCENARIO_DIR}\INPUTS\*.csv {SCENARIO_DIR} - Will not work *Copy {SCENARIO_DIR}\INPUTS\File1.csv {SCENARIO_DIR}
In Application 2
FILEI MATI[1]="{SCENARIO_DIR}\OUTPUT.MAT
Multiple applications are not recommended in CCS CCS Exporter will show a warning message
Warning: The following files require a previous Application to be run first in order to create them
Best Practices
Use file keys for input files Use unique file names for scenario specific input files Reference all model run outputs to the {SCENARIO_DIR} Directly link output files in application manager instead of reading the file internally Always use double quotes for file paths and names Execute user programs from scenario dir
Register/Log-in
Requires a CCS account to access the functions of exporter Same user name/password as www.planthecity.com
Exporter
Export/Upload
Models
Status
Exporting
SM and AM should be open Check the catalog name Export
Compiles model scripts Build CCS script Build catalog information (.xml) Copy inputs Compress upload folder
Creates web and web.zip file Lists errors and warnings from the export process
Uploading
Title Name of the model in CCS Description A brief description of the model. This description will be listed in www.planthecity.com Check upload log to confirm model upload
Whats Next?
Model will be listed as Pending on www.planthecity.com Review and Approve Assign admin privileges to the user Invite user to edit/run model