Start Running
- Log into the computer.
- You can open up a browser and get this page.
- We're going to use the Eclipse interactive development environment
to run and modified a genetic algorithm program written in Java.
- Find the Eclipse icon on the desktop and double click it to open.
- Download the genetic.java file. You can
open it in a notepad if you like.
- In Ecliplse, make a new java project (from the File menu item).
You can name it a lot of things, but let's call it nov18.
- Expand the src tab (in the project window on the left). Then right
click on the src, and create a new class. Name it genetic, and put the
code from the downloaded file in it.
- Run it either from the menu or from clicking the run icon.
- The console window should now put up a bunch of strings of
numbers, with most being 9s by the end of the run (in a second or two).
- We're going to have a chat about genetic algorithms (GAs),
and then we'll walk through some modifications.
- If you've finished before the chat starts, you can look through
the code.
- You can play with it, but you might want to save a copy, or use
the undo function to go back to an earlier version.