Lecture2-IE122

# Lecture2-IE122 - IE 122 Lecture 2 IE122-Lecture 2 What is...

This preview shows pages 1–6. Sign up to view the full content.

IE 122 Lecture 2 IE122-Lecture 2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
What is Ampl? A modeling language that helps us to develop and apply mathematical programming models. Can solve linear, nonlinear, integer, mixed integer models. Can write any piece of code that you can write in C, C++ in ampl: can create loops, generate random numbers, check logical conditions, fill arrays, … IE122-Lecture 2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
First Ampl program: Defining the Model: To define Variables var name_of_variable ; var x1; var x2; To define Objective maximize (or minimize) obj_name: objective-function; maximize profit: 2*x1+x2; minimize cost: x1+3*x2; To define Constraints subject to name_of_constraint : constraint_function; subject to capacity: x1+x2<=30; IE122-Lecture 2
Example: Steel Production A mill can produce two semi-finished products: bands and coils. The band production rate is 200 tons/hour, while coil production rate is 140 tons/hour. The company obtains \$25 per ton band, and \$30 per ton coil. Also, there is a maximum level for each item to be produced. Bands can be produced up to 6,000 tons and coils up to 4,000 tons.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern