GithubHelp home page GithubHelp logo

johnnyxcy / 381-programming Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saoicourts/381-programming

0.0 1.0 0.0 1.16 MB

Introduction to using Python and Gurobi to solve linear programming problems for UW's Math 381 (Autumn 2018)

Jupyter Notebook 100.00%

381-programming's Introduction

Math 381 Programming Introduction

This repository holds the files and instructions you will need to get your computer ready to learn about using Python to solve linear programming problems.

Our set-up

We will be using Python in a Jupyter notebook as a scripting language and Gurobi as the programming solver. This will allow a user-friendly programming environment that shouldn't be too difficult even for first-time programmers while giving you the power of a state-of-the-art optimizing engine to solve your problems.

Things to do BEFORE COMING TO LECTURE

  1. Get a (free) Gurobi academic license You can visit this page to fill out a form to get your academic license. You will need to create an account using your UW email address and then log in to get your key. Save this until later.

  2. Install Anaconda and Python Even if you have Python installed on your computer already, you will need to install the distribution that comes with Anaconda. This will ensure you have a compatible installation which includes Gurobi and Jupyter and everything else you will need.

    Visit this page to see the instructions for your operating system. Be sure to get the version with Python 3.6. I will be giving instructions for this version of Python and you will find you get frustrating small errors if you get the wrong version. Follow the instructions to install Anaconda and Gurobi.

    • It will ask if you want to add the new files to your PATH. You probably want this unless you have a custom Python installation already (in which case you probably know what to do).
    • You do not need to install VSCode that comes bundled with it although I think it's a great IDE. We will be using Jupyter notebooks (which comes bundled with Anaconda).
  3. Download these files to your computer If you have git installed (if you are not sure, you probably don't) you can clone this repository to your computer by opening a terminal, cding to your desired directory, then issuing the command git clone https://github.com/NicoCourts/381-Programming. This has the slight advantage that when I release more files to this repository you can just issue a git pull command to get the updates.

    Otherwise you can scroll to the top of the page and select the green Clone or download button. Then you can download the included files in a zip file and unzip them to your desired directory.

  4. Run Jupyter to make sure everything is working If you are on Windows, search for the Anaconda folder in your programs and within it you should find Jupyter.

    If you are on Mac or Linux, open a terminal and issue the command jupyter notebook in the directory containing these files.

    In either case, you can then navigate to the file Getting-Acquainted.ipynb and open it up. We will be going through this together in class since this is a rather quick introduction.

    Try running a few of the cells to verify that everything is set up properly.

Come talk to me in office hours if you have trouble with any parts of the above. It is important we resolve your issues before our lecture so that you can follow along and learn from doing.

381-programming's People

Contributors

saoicourts avatar johnnyxcy1997 avatar johnnyxcy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.