Impl installation manual


Published on

The installation of IMPL is a straightforward procedure and requires the following prerequisites: two redistributable components from Microsoft and Intel , two open-source applications called Dia and Matplotlib (with NumPy) as well as two versions of the freely useable and distributable Python programming language where it is important to install each component in the order that they are found in this manual. Note that Dia, Matplotlib and Python are only required to create a model’s flowsheet graphically and to view a solution’s data in a Gantt chart with trend plots. If IMPL only is required then only Microsoft and Intel redistributable packages must be installed.

It is also possible to install the free Notepad++ to help configure IML files with syntax highlighting. In addition, the free Visual Studio 2010 C++ Express may also be installed to write C or C++ programs calling IPL similar to the IMPL console program as well as to increase the stack-size of Microsoft Excel to call IPL from VBA.

After the prerequisites have been installed, the installation of IMPL itself is simply a matter of extracting the files from the file into directory such as C:\IMPL. To run IMPL from a DOS command window prompt or console, type inside the C:\IMPL directory the following:

impl –feed=IMLfile –filter=logistics|quality –fork=coinmp|glpk|lpsolve|ipopt|slpqpe_

where IMLfile is your *.iml filename without the IML extension and select either coinmp, glpk or lpsolve as the MILP solver with logistics and ipopt, slpqpe_coinmp, slpqpe_glpk or slpqpe_lpsolve with quality as the NLP solver.

Published in: Engineering, Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Impl installation manual

  1. 1.                         i  M  P  l     Industrial  Modeling  &  Programming  Language     "Installation  Manual"                       i  n  d  u  s  t  r  I  A  L  g  o  r  i  t  h  m  s    LLC.                 Version  1.0   April  2014   IAL-­‐IMPL-­‐IMW-­‐1-­‐0.docx       Copyright  and  Property  of  Industrial  Algorithms  LLC.    
  2. 2. Introduction     The  installation  of  IMPL  is  a  straightforward  procedure  and  requires  the  following  prerequisites:  two   redistributable  components  from  Microsoft  and  Intel  ,  two  open-­‐source  applications  called  Dia  and   Matplotlib  (with  NumPy)  as  well  as  two  versions  of  the  freely  useable  and  distributable  Python   programming  language  where  it  is  important  to  install  each  component  in  the  order  that  they  are  found   in  this  manual.    Note  that  Dia,  Matplotlib  and  Python  are  only  required  to  create  a  model’s  flowsheet   graphically  and  to  view  a  solution’s  data  in  a  Gantt  chart  with  trend  plots.    If  IMPL  only  is  required  then   only  Microsoft  and  Intel  redistributable  packages  must  be  installed.     It  is  also  possible  to  install  the  free  Notepad++  to  help  configure  IML  files  with  syntax  highlighting.    In   addition,  the  free  Visual  Studio  2010  C++  Express  may  also  be  installed  to  write  C  or  C++  programs   calling  IPL  similar  to  the  IMPL  console  program  as  well  as  to  increase  the  stack-­‐size  of  Microsoft  Excel  to   call  IPL  from  VBA.       After  the  prerequisites  have  been  installed,  the  installation  of  IMPL  itself  is  simply  a  matter  of  extracting   the  files  from  the  file  into  directory  such  as  C:IMPL.    To  run  IMPL  from  a  DOS  command   window  prompt  or  console,  type  inside  the  C:IMPL  directory  the  following:     impl –feed=IMLfile –filter=logistics|quality –fork=coinmp|glpk|lpsolve|ipopt|slpqpe_   where  IMLfile is  your  *.iml  filename  without  the  IML  extension  and  select  either  coinmp, glpk or lpsolve  as  the  MILP  solver  with  logistics and  ipopt, slpqpe_coinmp, slpqpe_glpk or slpqpe_lpsolve  with  quality as  the  NLP  solver.     Download  and  Install  the  Microsoft  Visual  Studio  C++  2010   Redistributable  Package  (x86)     Download  the  file  vcredist_x86.exe  from  the  following  website:­‐us/download/confirmation.aspx?id=5555    
  3. 3. Install  this  component  on  your  computer  by  double-­‐clicking  on  this  self-­‐extracting  executable.     This  component  is  required  given  that  Intel  Visual  Fortran  for  Windows  uses  several  Microsoft  C++   routines.     Download  and  Install  the  Intel  Visual  Fortran  Composer  XE  2013  for   Windows  Redistributable  Library  Package  (Update  4)     Download  the  file  from  the  following  website:­‐us/articles/redistributable-­‐libraries-­‐for-­‐intel-­‐c-­‐and-­‐visual-­‐fortran-­‐ composer-­‐xe-­‐2013-­‐for-­‐windows     Install  this  component  on  your  computer  by  double-­‐clicking  on  the  zip  file  and  then  double-­‐clicking  on   the  self-­‐extracting  file  w_fcompxe_redist_ia32_2013.4.190.msi.     Download  and  Install  the  Python  2.3.5  Programming  Language     Download  the  file  python-­‐2.3.5.exe  from  the  following  website:     Install  this  component  on  your  computer  by  double-­‐clicking  on  this  self-­‐extracting  executable.       Download  and  Install  the  Dia  Application  with  UOPSS  Shapes  &  Sheet     Download  the  file  dia-­‐setup-­‐0.97.2-­‐2-­‐unsigned.exe  from  the  following  website:   http://dia-­‐     Install  this  component  on  your  computer  by  double-­‐clicking  on  this  self-­‐extracting  executable  and  during   the  procedure  be  sure  to  check  the  Python  2.3.5  plug-­‐in  option.     Once  the  Dia  has  been  installed  with  Python  2.3.5,  we  need  to  install  the  UOPSS  shapes  and  sheet  as   well  as  the  found  in  the  compressed  file  which  allows  the   construction  of  a  UOPSS  flowsheet  (i.e.,  the  creation  of  the  *.ups  file).    Below  are  the  following  steps:  
  4. 4.   1. Open  then  close  Dia.    This  will  create  the  necessary  user  sub-­‐directories  i.e.,   C:Usersxxx.diashapes  and  C:Usersxxx.diasheets  where  xxx  is  your  username.   2. From  the  zip  file  extract  its  contents  to  a  temporary  directory.   3. Copy  all  of  the  files  with  the  extension  *.png  and  *.shape  to  the  sub-­‐directory   C:Usersxxx.diashapes.   4. Copy  the  file  UOPSS.  sheet  to  the  sub-­‐directory  C:Usersxxx.diasheets.   5. Copy  the  file  to  the  sub-­‐directory  C:Program  Files  (x86)Dia.     When  you  open  Dia  again  you  will  see  a  menu  item  labeled  industrIALgorithms  which  will  have  a  drop-­‐ down  item  called  IALConstructer.    The  IALConstructer  will  create  the  UOPSS  shapes  and  place  them  into   a  *.ups  file  whose  file  name  will  be  the  same  as  the  drawing  name  in  Dia.     Download  and  Install  the  Python  2.7  Programming  Language     Download  the  file  python-­‐2.7.msi  (Windows  x86  MSI  Installer  (sig))  from  the  following  website:     Install  this  component  on  your  computer  by  double-­‐clicking  on  this  self-­‐extracting  executable.       Download  and  Install  the  NumPy  1.6.2  Application  (Prerequisite  for   Matplotlib)     Download  the  file  numpy-­‐1.6.2-­‐win32-­‐superpack-­‐python2.7.exe  from  the  following  website:     Install  this  component  on  your  computer  by  double-­‐clicking  on  this  self-­‐extracting  executable.       Download  and  Install  the  Matplotlib  1.1.0  Application     Download  the  file  matplotlib-­‐1.1.0.win32-­‐py2.7.exe  from  the  following  website:  
  5. 5.­‐1.1.0/     Install  this  component  on  your  computer  by  double-­‐clicking  on  this  self-­‐extracting  executable.       The  files  and  provided  in  the  file  can  be  used  to  read  any   *.exl  solution-­‐data  file  from  IMPL  and  it  will  use  the  Gantt  charting  capability  in  Matplotlib  to  view  the   UOPSS  quantity,  logic  (logistics)  and  quality  details  over  time.     Download  and  Install  the  Notepad++  Application     Download  the  file  npp.6.5.5.Installer.exe  from  the  following  website:   http://notepad-­‐plus-­‐     Install  this  component  on  your  computer  by  double-­‐clicking  on  this  self-­‐extracting  executable.       The  file  IML.xml  provided  in  the  file  can  be  imported  into  Notepad++  by  clicking  on  the  menu   item  “Language”,  clicking  “Define  your  language…”  and  then  clicking  “Import”  which  will  open  a  dialog   box  to  locate  and  input  the  IML.xml  file.     It  is  also  possible  for  Notepad++  to  host  running  applications  such  as  the    In  the   directory  C:UsersxxxAppDataRoamingNotepad++  the  file    shortcuts.xml  can  be  edited  to  include   the  following:     <UserDefinedCommands> <Command name="Run IALViewerQL" Ctrl="no" Alt="no" Shift="no" Key="119">cmd /K C:Python27python.exe $(FULL_CURRENT_PATH)</Command> </UserDefinedCommands>   This  will  run  inside  a  DOS  command  window  from  within  Notepad++.     Download  and  Install  the  Microsoft  Visual  Studio  2010  C++  Express   Application  (Required  to  Increase  Stack-­‐Size  of  Microsoft  Excel  VBA)  
  6. 6.   Download  the  file  vc_web.exe  from  the  following  website:­‐us/downloads#d-­‐2010-­‐express     Install  this  component  on  your  computer  by  double-­‐clicking  on  this  self-­‐extracting  executable.    This  will   install  Microsoft  Visual  Studio  C++  Express  which  allows  you  to  write  C  or  C++  programs  and  it  is  free   similar  to  the  IMPL  console  executable  program.     We  also  require  it  for  IMPL  in  order  to  allow  the  stack-­‐size  of  Microsoft  Excel  VBA  to  be  increased  in   order  to  IPL  from  Excel.    Once  it  is  installed,  go  to  the  Microsoft  START  button  or  symbol  and  click  All   Programs.    Search  for  Microsoft  Visual  Studio  2010  Express  and  click  on  it  and  then  right  click  on  the   Visual  Studio  Command  Prompt  (2010)  and  open  it  as  Run  as  administrator.    Then,  inside  the  command   prompt  change  the  directory  to  C:Program  Files  (x86)Microsoft  OfficeOffice12  for  example  or   wherever  your  EXCEL.EXE  file  is  located.    At  the  command  prompt  type:     editbin /stack:4000000,4000000 excel.exe   This  will  increase  both  the  reserve  and  commit  stack-­‐sizes  to  4MB  which  will  allow  IMPL  to  run  inside   Microsoft  Excel  VBA  without  getting  the  “out  of  stack”  error  message.    You  will  only  need  to  run  the   above  command  once.