
Engage with a structured course flow: review basic concepts, solve two examples of increasing difficulty, tackle a challenge problem, and pause to attempt solutions before coding.
Explore optimization with Python using Pyomo in Google Colab, covering linear, nonlinear, and mixed integer nonlinear programming through guided examples, challenges, and Python-based modeling.
Explore the fundamentals of optimization, including objective functions, constraints, and decision variables, with a tour of linear, nonlinear, and mixed-integer programming and convexity, feasibility, and applications.
Discover why Google Colab stands out for Python optimization work, highlighting its ease of use, no installation, and preinstalled packages.
Explore the Google Colab environment to create, run, and manage notebooks with code and text cells, connect to Google Drive or GitHub, and use Stack Overflow for errors.
Explore linear programming basics, including maximizing or minimizing a linear objective subject to linear inequality and equality constraints with continuous variables.
Define decision variables x1 and x2 for deluxe and regular builds, and maximize profit: 4x1 + 3x2, subject to leather and labor constraints with x1, x2 ≥ 0.
Install Pyomo and GLPK, build a concrete model with x1 and x2, maximize the objective under two constraints, and print the results.
Formulate a linear programming model to maximize revenue from desks, tables, and chairs using decision variables and sets subject to lumber, finishing, and carpentry constraints, including a cap on tables.
Hi there,
In the following video, the below line needs to be added to the code for the last constraint (Please note that this change does not impact the final result)
model.Const4 = pyo.Constraint(model.i,rule = Constraint4)
Thanks!
Navid
Form a linear programming model to minimize electricity transmission costs from three plants to four cities using decision variables x_i_j. Enforce supply and demand constraints with a sets-based formulation.
learn to build and solve a pyomo optimization model in python, defining sets and parameters, formulating the objective and constraints, and extracting solver results.
Introduces integer programming with a linear objective and constraints, where variables are integers, and clarifies terms like IP, MILP, and mixed integer programming, including branch and bound approaches.
Formulate an integer programming model to maximize profit from shirts, shorts, and pants, defining sets, parameters, and decision variables X_i and Y with a big M link to fixed costs.
Learn to develop a Pyomo model in Python for linear programming by defining sets, parameters, integer and binary variables, the objective, and constraints, then solve with a simplex solver.
Formulate an integer linear programming model to minimize production cost by defining two production lines, three seed types, worker allocation, and weekly demand constraints.
Develop an integer programming model in Python using Pyomo, defining sets, parameters, decision variables, objective, and constraints, and solve with the Simplex solver.
Form a milp for the traveling salesman problem using a distance matrix, binary x_ij, an auxiliary variable, and big-M to eliminate subtours while minimizing total distance.
Learn to solve a MILP challenge in Python with Pyomo, reading Excel or CSV data with Pandas, defining I and J sets, binary x(i,j) and nonnegative u(i) with subtour elimination.
Explore non-linear programming basics, where objective functions can be minimized or maximized, constraints may be nonlinear with equalities or inequalities, and decision variables are continuous.
Formulate a nonlinear programming model to maximize the walkway area around a central 10-by-18 void, using outer dimensions x1 and x2 with equal-width and 250 m handrail constraints.
Develop a nonlinear programming model in python with pyomo, maximizing x1*x2 minus 180 under two linear constraints, solved with ipopt to obtain x1 and x2.
Formulate a nonlinear programming model to minimize the rectangle's perimeter while placing three circles with radii 6, 12, and 16 inside without overlap, using circle center coordinates as decision variables.
Learn to build and solve a nonlinear programming model in python with pyomo, defining variables and mixed constraints, to minimize a plus b and locate circle coordinates inside a box.
Analyze a nonlinear programming challenge to maximize profit from packaging virgin olive oil and olive oil degree one and 0.4, considering production, storage, packaging speed, market share, and rappel.
Learn to model a non-linear production planning problem with Pyomo and Ipopt. Define sets, aliasing, parameters, and a single decision variable with a multi-term objective and constraints.
Introduce mixed-integer nonlinear programming, a nonlinear optimization that mixes integer and real variables, with either linear or nonlinear objectives and constraints.
Formulate a two-year oil extraction optimization to maximize profit by selecting x1 and x2, with revenue x1(30−x1)+x2(35−x2) minus costs x1^2 and 2x2^2 under x1+x2 ≤ 20 and x1^2+2x2^2 ≤ 250.
Build and solve a mixed integer non-linear programming model in python using pyomo, defining non-negative integer variables x1 and x2, maximizing profits under two constraints, and interpreting solver results.
Formulate an engineering optimization problem for a helical compression spring using Pyomo. Select wire type and number of springs to minimize volume under preload and deflection constraints.
Develop a Pyomo optimization model in Python by defining sets and parameters, configuring variables with bounds, formulating constraints, solving a coil spring problem to minimize volume and select wire type.
Formulate a multilevel minlp to identify the least-cost centrifugal pump configuration that achieves a specified pressure rise at a given total flow, using binary level existence and flow fractions.
Learn to model and solve a MINLP challenge in Python with Pyomo, reading data from Excel, defining sets, parameters, and variables, and minimizing costs using a Cohen solver.
Wrap up the course by recapping the five optimization steps—understanding the problem, formulating it, modeling in Python with data from Excel or CSV, solving with a solver, and reporting results.
Mathematical Optimization is getting more and more popular in most quantitative disciplines, such as engineering, management, economics, and operations research. Furthermore, Python is one of the most famous programming languages that is getting more attention nowadays. Therefore, we decided to create a course for mastering the development of optimization problems in the Python environment. In this course, you will learn how to deal with various types of mathematical optimization problems as below:
Linear Programming (LP)
Mixed Integer Linear Programming (MILP)
Non-Linear Programming
Mixed Integer Non-Linear Programming
Since this course is designed for all levels (from beginner to advanced), we start from the beginning that you need to formulate a problem. Therefore, after finishing this course, you will be able to find and formulate decision variables, objective function, constraints and define your parameters. Moreover, you will learn how to develop the formulated model in the Python environment (using the Pyomo package).
Here are some of the important skills that you will learn when using Python in this course:
Defining Sets & Parameters of the optimization model
Expressing the objective function and constraints as Python function
Import and read data from an external source (CSV or Excel file)
Solve the optimization problem using various solvers such as CPLEX, IPOPT, COUENNE &, etc.
In this course, we solve simple to complex optimization problems from various disciplines such as engineering, production management, scheduling, transportation, supply chain, and ... areas.
This course is structured based on 3 examples for each of the main mathematical programming sections. In the first two examples, you will learn how to deal with that type of specific problem. Then you will be asked to challenge yourself by developing the challenge problem into the Python environment. Nevertheless, even the challenge problem will be explained and solved with details.