You simply import the modules at the start of your Python session, instead of having to install and learn how to use the wrapper described above. And, recent versions of Python include modules you can import that implement shell features such as readline, history and tab completion. CPLEX's Python API, available in versions 12.1 and later, enables you to perform many more operations than the Interactive Optimizer, with only a slight increase in the number of statements. Python is an interpreted language, so you can use it interactively. If you seek more flexibility and functionality from the Interactive Optimizer, consider using CPLEX's Python API as an alternative. Windows users should note that Cygwin normally has GNU readline already installed.Īfter compiling and installing, you can execute the Interactive Optimizer the following way in order to have access to a command history, command-line editing, and tab-completion of file names: Note that some Linux versions come with this utility already installed. RLwrap is released according to the GPL (open source license) and is available at. However, if your system has GNU readline installed, you can equip the Interactive Optimizer with command history, command-line editing, and tab-completion of file names by using a binary wrapper such as RLwrap for the CPLEX executable. rlwrap is a readline wrapper that uses the GNU readline library to allow the editing of keyboard input for any other command. The Interactive Optimizer does not support these features by itself.
0 Comments
Leave a Reply. |