1. Prerequisites for Deployment

* pdptool_winpkg.zip after extraction must contain:

 - pdptool.exe : This is the pdptool executable.

 - This readme.txt file
 
* This package requires  MATLAB Compiler Runtime (MCR), version 7.14.

========================================================================
MCR - MATLAB Compiler uses the MATLAB Compiler Runtime (MCR), which is
a standalone set of shared libraries that enable the execution of
M-files. The MCR provides complete support for all features of MATLAB
without the MATLAB GUI. For more information about the MCR, see the
MATLAB Compiler documentation.
========================================================================

2. Verify that MCR version 7.14 is installed on your system. If it
is, continue to step (3). The usual location for MCR is 
C:\Program Files\MATLAB\MATLAB Compiler Runtime\<version> 
where <version>indicates the version number, in this case 'v714'.

  - If the MCR is not installed or if it is an older version, download
    the MCRInsaller.exe file from

    http://stanford.edu/group/pdplab/pdptool/standalone/MCRv7.14/win32

  - After downloading double click on MCRInstaller.exe to start
    the installation process.
      
  - It brings up a dialog box and starts InstallShield wizard for
    MATLAB Compiler Runtime.

        - Follow the instructions, click on 'Next' button to initiate
          the installation process.

        - When the installation is complete, click on 'Finish' button
          to close the wizard.

3. Set up the environment:

   Place the pdptool_winpkg directory including this readme file and
   the pdptool.exe file in a directory of your choosing.  One good
   place would be inside the C:\Program Files directory.  You now
   need to add the full path to this directory to the 'Path'
   environment variable.  For example, the full path might be 

   C:\Program Files\pdptool_winpkg

   You can put the path to this directorty into your 'Path' as
   follows: Right-click on 'My computer', select properties, then
   select the 'Advanced' tab. It will have an 'Environment Variables'
   button. Click on it to get dialog box for setting the variable.
   Here, select 'Path' in the 'System Variables', then select edit.
   This will open up a small editbox with the current path.  Insert a
   semicolon at the end of text string already in the current path.
   Then put the full path to the pdptool_winpkg directorty after the
   semi-colon. Then Click on 'Ok' to dismiss the popups that you have
   opened in doing this.

4. You are now ready to run pdptool. 

   To just bring up the gui to create your own network, you can simply
   double click the pdptool.exe icon.

   To run any existing networks based on preconfigured network
   scripts, open the windows cmd/dos prompt. Change directory to where
   your .m scripts reside. For example, you might have the pdptool
   directory hierarchy with subdirectories in C:\Users\YourUserName\Desktop.  
   If you want to run the iac model using the jets.m script, you would
   cd to C:\Users\YourUserName\Desktop\pdptool\iac.

   Then, on the command line, you would type:

      pdptool jets.m

   This will bring up the gui and execute all the statements in jets.m
   file. 

   You will notice on the cmd prompt, a pdp prompt like this -

   '>>pdp'
   
   You can type more pdptool commands on the pdp prompt to inspect
   variables and/or set options. You can also execute files containing
   sets of commands using 'runscript script.ext' where 'script.ext' is
   the name of the script file.  Ext can be 'm' or 'txt', among
   others. Each line of the file must contain a single complete matlab
   expression in ascii text format.