jagomart
digital resources
picture1_Python Pdf 186099 | Modelingwithpython


 134x       Filetype PDF       File size 0.18 MB       Source: coral.ise.lehigh.edu


File: Python Pdf 186099 | Modelingwithpython
tools for modeling optimization problems ashort course modeling with python dr ted ralphs modeling with python 1 why python pros as with many high level languages development in python is ...

icon picture PDF Filetype PDF | Posted on 01 Feb 2023 | 2 years ago
Partial capture of text on file.
       Tools for Modeling Optimization Problems
                   AShort Course
                Modeling with Python
                     Dr. Ted Ralphs
         Modeling with Python                                                   1
                                    Why Python?
         ² Pros
           – As with many high-level languages, development in Python is quick
              and painless (relative to C++!).
           – Python is popular in many disciplines and there is a dizzying array of
              packages available.
           – Python’s syntax is very clean and naturally adaptable to expressing
              mathematical programming models.
           – Python has the primary data structures necessary to build and
              manipulate models built in.
           – There has been a strong movement toward the adoption of Python as
              the high-level language of choice for (discrete) optimizers.
           – Sage is quickly emerging as a very capable open-source alternative to
              Matlab.
         ² Cons
           – Python’s one major downside is that it can be very slow.
           – Solution is to use Python as a front-end to call lower-level tools.
                                                                                1
       Modeling with Python                                  2
                   Drinking the Python Kool-Aid
                                                             2
         Modeling with Python                                                   3
                           Two-minute Python Primer
         ² Python is object-oriented with a light-weight class and inheritance
           mechanism.
         ² There is no explicit compilation; scripts are interpreted.
         ² Variables are dynamically typed with no declarations.
         ² Memory allocation and freeing all done automatically.
         ² Indentation has a syntactic meaning!
         ² Code is usually easy to read “in English” (keywords like is, not, and
           in).
         ² Everything can be “printed.”
         ² Important programming constructs
           – Functions/Classes
           – Looping
           – Conditionals
           – Comprehensions
                                                                                3
The words contained in this file might help you see if this file matches what you are looking for:

...Tools for modeling optimization problems ashort course with python dr ted ralphs why pros as many high level languages development in is quick and painless relative to c popular disciplines there a dizzying array of packages available s syntax very clean naturally adaptable expressing mathematical programming models has the primary data structures necessary build manipulate built been strong movement toward adoption language choice discrete optimizers sage quickly emerging capable open source alternative matlab cons one major downside that it can be slow solution use front end call lower drinking kool aid two minute primer object oriented light weight class inheritance mechanism no explicit compilation scripts are interpreted variables dynamically typed declarations memory allocation freeing all done automatically indentation syntactic meaning code usually easy read english keywords like not everything printed important constructs functions classes looping conditionals comprehensions...

no reviews yet
Please Login to review.