810:025 01 - Spring 2011

SPRING 2011 - 810:025 01 Computational Modeling and Simulation

Used to be a take home test in Fall 2010: Now an Optional Extra Credit opportunity: Due by Monday, May 9th, 2011 by 5 p.m.

VIP: Final Exam Study Guide is here. Consists of 9 items.

FINAL EXAM period: 10-11:50 a.m. Wednesday, May 4th - ITT 322 regular classroom on 4th floor

  1. Final Exam scores added to the first two test scores.

  2. VIP: Final Exam Study Guide is here. Consists of 9 items.

  3. First two Quiz Scores sorted into descending order.

  4. FINAL EXAM: Quiz Two is part of the study guide for the final exam test/quiz. The game of LIFE was NOT on quiz two, but I have included two pages on that because it will be on the final.

  5. FINAL EXAM: NetLogo Circles or Rectangles of Turtles - demonstration of cro 8 and fd 8 or fd squareRoot( 128 ) to form a RECTANGLE of 8 turtles.

  6. FINAL EXAM: Using the COSINE and some basic trigonometry to place all the turtles in two rows and two columns of the turtle world.

  7. Oil Percolating and Fractal patterns via Cellular Automata - with and without randomness (chaos). Paper and Pencil modeling. Only 3 different rules to apply for fractal portion, part one of the exercise.

  8. Sine and Cosine After Effects; Oil Percolation Excel VBA macros: Monday, April 25th Excel and After Effects files.

  9. Flocking of Birds Assignment: Making the birds SEE less than 360 degrees using a "Cone of Vision" is due on Wednesday, April 13th.

    Observe FLOCKING of birds examples (called BOIDS) and read more about the history. Huge influence on movies and special effects techniques with crowds of people and herds of Jurassic Park dinosaurs, etc. See 1986 Quicktime movie where boids avoid obstacles.

    See the Bird flock that students learn how to create in Visual Effects, Animation, and Motion Graphics class.

  10. Quiz Two Study Guide - Wednesday, April 6th Quiz.

  11. Ventana VENSIM assignment due on Wednesday, April 6th. Answer the 7 questions about the Andrew Ford book preface. Due at 9 a.m. Wednesday. Hard copy will be turned in. (No emailed attachments or answers).

  12. Physics based simulation of gravity using Adobe Flash.

  13. Variations on Netlogo fire model: Variation one (Using In-Cone so fire can only move forward and never sideways or backward).

  14. Quiz Wednesday, April 6th; email0328Spr2011.txt. Steps of the Modeling Process and Forest Fire NetLogo model. 4 neighbors or 8 neighbors.


      I. Analyze the problem                Dr. Peter Venkman       WHAT
         "We must first study the situation sufficiently to identify 
          the problem precisely and understand the fundamental questions
          clearly. ... a clear, precise problem identification ... "
     II. Formulate a model                  Dr. Raymond Stantz      HOW
         c.     See and read and study the Monday 03/28 handout...
    III. Solve the model                    Dr. Egon Spengler
     IV. Verify and interpret the model's solution
      V. Report on the model
     VI. Maintain the model

  15. Due March 30th, 2011: VENSIM assignment to create a complex population model.
  16. VENSIM resources and assignment.
    Answer the 6 questions (i. and ii. and iii. and iv. and v. and vi.) 
    which are all answerable if you study the Vensim Tutorial 1.pdf link.
    The answers will be found on the first 6 pages of the PDF.
    Due date:  Monday, March 7th.

  17. Quiz ONE on Wednesday, March 2nd.

  18. Monte Carlo assignment due on Wednesday, February 23rd.

    Monte Carlo examples, etc.

    More Monte Carlo techniques and examples.

    The Photoshop JPEG: Monte Carlo JPG Friday, February 18th example.
    The 02/18/Friday workbook - .XLSX Monte Carlo .xlsx

  19. Example: Changing the TEMPO of the music with NetLogo.

    Email note about the TEMPO slider and 1*tempo versus 2*tempo and so on.

  20. Agent based modeling: The Canadian Lynx and Hare predator prey model - DUE ON FRIDAY, FEBRUARY 11th by 10 p.m. - send attachment to jacobson@cs.uni.edu.

  21. Spring 2011 Syllabus for the 810:025 01 class.

  22. Assignment One is due on Friday, January 28th by 10 p.m. - email jacobson@cs.uni.edu with the .nlogo files as attachments.

  23. What types of things we will do in 810:025 this spring. About how much time will be spent on each topic and what software is used.

  24. Here is a quote from our textbook: Turtles, Termites and Traffic Jams by Resnick.
            "A flock of birds sweeps across the sky.
             Like a well-choreographed dance troupe,
                the birds veer to the left in unison.
                   they all dart to the right
                      and swoop down toward the ground.
             Each movement seems perfectly coordinated.
             The flock as a whole is as graceful---maybe
                 more graceful--than
                                   any of the birds
                                               within it."
  25. Fall 2010 and Spring 2011 - Class one review - email note from Monday afternoon with URLs, with cro, fd, rt, pd, pu, ca and repeat 4 [fd 5 rt 90] drawing of a square commands reviewed.

  26. Free NetLogo software: DOWNLOAD NETLOGO link - software is available for Macs and for PCs.

  27. Wednesday, Class #2 and Friday, Class #3 (StudioIT 1 ITT 134 lab) covered almost all of the following NetLogo. Please look over these TEN NETLOGO commands to review what we have covered so far.
     1. ca  -   clear all is abbreviated ca   for clear all
                                                  -     -
                Any turtles created with cro or crt are destroyed and removed from 
                the turtle GRID world.
                Any drawings that have been created are erased.  Drawing would have been
                created with turtles moving about with their PD Pens Down, or pd tails dragging.
     2. cro  -  cro 8    create ordered turtles and since ----------  =  45 degrees, 
                                  the heading or directions of the 8 turtles  
                                  would be:                            
                                                0 and  45 and 
                                               90 and 135 and
                                              180 and 225 and
                                              270 and 315
                cro 36    create ordered turtles with each turtle facing 10 degrees more than
                          the first turtle.
                                              Headings would be 0, 10, 20, 30, ... , 340, 350
                                                                   degrees for the 36 turtles.
     3. crt n     crt 10    creates 10 turtles, but they have random headings.
                  crt 8     creates 8 turtles, located at (0,0) the same as cro would do,
                            but they have totally random headings.
                            You discover the random headings or directions the turtles are 
                            facing when you do the command fd n, such as:
                            crt 16
                            ask turtles [ fd 8 ]
                                 would show you that the turtles were facing every which way,
                                 and NOT facing a very symmetric 0, 22.5, 45, 67.5, 90, ... etc.
                                 Do you understand the difference between CRO and CRT now?
     4. turtles - two vip facts about any turtle at any moment:  position and heading
                                                                 --------     -------
        turtles have a position (or location)...   2D = 2 dimensional space = 2D space
                                                   The default position of any turtle
                                                   created with cro or crt command is (0, 0),
                                                   which is the very center of the GRID of
                                                   patches, the very center of the turtles 2D
        turtles have a heading, or a direction that they are facing and will move in
                when asked to go forward with the fd command.
     5. pu = pen up   - pu or pen up or turtle tail up is the DEFAULT.  Any turtle created
                        by cro or crt will be DEFAULT have its pen up.
        pd = pen down - turtle will leave a trail or draw a line when it moves when its
                        pen is down.
     6. fd n - tells the turtle to move forward n steps or a length of n grid units.
                                        -     -
               fd 5    moves the turtle forward 5 steps.
               fd 14   moves the turtle forward 14 steps or grid units.
               If a turtle was facing due NORTH on the grid and at center square, 
               i.e. its position was (0,0), and we told it to move forward 5 units,
               with fd 5 command, where would it be?
               (0, 5) would be the location of the turtle.
                            ---       --------
               If a turtle was facing to the left, i.e. to due west on the grid,
               and at (0, 0) or the default start location for all turtles,
               and we said:
                            fd 14
               the turtles 
                           location would now be (-14, 0) 
        bk n    examples     bk 3       tell to turtle to move or walk backwards or back
                             bk 14                                     -  -         -  -
                             bk 5              3 or 14 or 5 or 12 steps.
                             bk 12                         
     7. rt n     turn right n degrees   rt = RighT    examples    rt 45   rt 90   rt 10
        lt n     turn left n degrees    lt = LefT     examples    lt 120  lt 180   lt 14   lt 5
        Note:  The following two commands would result in exactly the same heading
               for any turtle, i.e. are two ways of a turtle obeying an about face command:
               rt 180        and       lt 180
               It just depends on whether you want the turtles to turn clockwise
                                                            or to turn counterclockwise.
               In any case, every computer would do this SO FAST, you would not be able to tell
               which way the turtle turned!
     8. repeat n [ what statements you want repeated n times ]
        repeat 4 [ fd 10  rt 90 ]      draws a square with side length 10 units, 
                                       if the PD pen is down with pd.  
                                       You don't see the square that the turtle traced 
                                       if the pu pen was up with pu instead of pd.
                                       So don't forget to put the pen down with PD when
                                       you want to DRAW some graphics with the turtles!

  28. Video tutorial review/discussion of the NetLogo demonstrations and skills that were covered first week of class.
    Note: VIDEO REVIEW TUTORIAL Part One - Watch it and take notes to increase your NetLogo understanding and skill.

  29. Preview of some models we will play with later on this semester:

    • Model of a cocktail party and how the men and women might interact and move about.
    • NetLogo Traffic Jams - model of how traffic flows and jams can form.
    • Model of Muscle Development and exercise physiology relevant for your WRC workouts, if they include weight lifting.

    You can run these in your web browser, so feel free to try them out before I show you how to run and use them in class.

  30. Free NetLogo software: DOWNLOAD NETLOGO link - software is available for Macs and for PCs.

  31. Assignment One is due on Friday, January 28th by 10 p.m. - email jacobson@cs.uni.edu with the .nlogo files as attachments.

  32. Music and NetLogo - to be covered during classes 5 and 6. Note: Class #5 (Friday 01/21) is in StudioIT 2 - ITT 136 on 2nd floor. Hands-on classes every Friday on 2nd floor, not 4th floor classroom.

  33. Happy Birthday example.

  34. Who numbers, REMAINDER, EVEN and ODD turtles - flying airplanes and swimming fish. Try the model and READ the extensive explanations.

  35. Dividing by 3 - Remainder is either 0 or 1 or 2. Seeing 3 different turtle shapes and behaviors. REMAINDER WHO 3 is either 0 or 1 or 2. Extending the concept from EVEN or ODD to have more than TWO categories.

    THREE useful Email notes about EVEN and ODD turtles:

    1. One
    2. Two
    3. Three

  36. Friday September 03, 2010 - Class/lab review... - NetLogo and the ifelse with remainder.

VENSIM resources and VENSIM assignment to create a complex population model.