
Welcome to Python Optimization using Pyomo & MEALPy (Arabic Course) — your complete, practical path to mastering optimization, mathematical modeling, and metaheuristic algorithms using Python. In this video, you’ll discover what the course covers, how it is structured, and what skills you will gain by the end of the journey. You’ll also learn how to navigate the lectures, use the provided notebooks, and get the most out of the hands-on projects.
Besides, you will be introduced to your instructor, Prof. Shady H. E. Abdel Aleem, an expert in artificial intelligence, optimization, and engineering applications.
A brief overview of Python’s creation, evolution, and why it became widely used in modern programming.
Learn basic syntax including variables, operators, and input/output to write simple Python programs.
Learn basic syntax including variables, operators, and input/output to write simple Python programs.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Learn how to create and manipulate text using indexing, slicing, formatting, and cleaning techniques.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Understand how to create, modify, and work with lists for flexible data storage and iteration.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Learn tuples and how they store fixed data.
Learn dictionaries and how they use key–value pairs to organize information.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Explore Python’s built-in support for complex numbers and their practical uses in engineering problems.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Learn set operations and Boolean logic to create conditions and decision-making in programs.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Understand how indentation, comments, and basic statements control code structure and clarity.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Use for-loops, range(), and nested loops to repeat tasks and process data efficiently.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Learn how while-loops, break, continue, and pass manage dynamic repetition and program flow.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Create reusable functions, pass arguments, return values, and understand variable scope.
In this hands-on session, you will run all AI examples directly inside Google Colab. You will practice loading data, applying the concepts from the previous lecture, testing simple models, and experimenting with real code in an interactive environment.
Learn the basic ideas of object-oriented programming, how classes and objects work, and the difference between instance and class attributes.
Create a simple class from scratch and learn how to organize attributes and methods through a practical example.
Explore inheritance, polymorphism, and special methods to build more powerful and flexible object-oriented programs.
Additional Example
Apply what you learned through hands-on exercises by creating and testing your own classes and objects in Google Colab.
Learn how to load CSV data, view your DataFrame, and understand the basic Series and DataFrame structures used in data analysis.
Discover how to clean and modify data by creating new columns, applying functions, handling missing values, and saving the updated dataset.
Practice cleaning, transforming, and analyzing data through hands-on exercises using Pandas in Google Colab.
Practice cleaning, transforming, and analyzing data through hands-on exercises using Pandas in Google Colab.
Learn why NumPy arrays are fast and efficient, and how to create and inspect arrays using their shape, dimensions, and size.
Explore advanced indexing and slicing, learn to reshape, split, and sort arrays, and perform fast element-wise operations using universal functions.
Explore other universal functions.
Practice creating and manipulating multi-dimensional arrays through hands-on numerical exercises in Google Colab.
Learn the basics of mathematical optimization, including variables, objectives, and constraints, and how Pyomo models them.
Build a nonlinear optimization model to maximize power by defining parameters, variables, and an objective function.
Solve a geometric problem by finding the largest rectangle inside a circle using nonlinear constraints and flexible parameters.
Learn how to read and interpret solver reports to understand model performance and convergence.
Model a least-time path problem over a semi-circular route by combining different travel segments in one objective function.
Visualize optimization results using plots that show variable relationships and highlight the optimal solution.
Model and solve the problem of finding the point that minimizes the total distance to three fixed locations.
Use linear programming to determine optimal daily drug doses while meeting medical and safety constraints, Part 1.
Solving the Problem on Anaconda
Translate physics equations into Pyomo constraints to compute the center of mass of a system.
Build a model to fit a curve to data points by minimizing prediction error.
Evaluate model performance using MAE, MSE, RMSE, and R² to measure prediction quality.
Use Pyomo to solve systems of linear equations while loading coefficient data directly from Excel.
Create a concrete model to choose the most cost-efficient electrical cable using predefined data and parameters.
Compare concrete and abstract modeling approaches using a diet optimization example.
Optimize power generation across multiple units to meet demand at the lowest cost under operational limits.
Build a financial model to minimize investment risk while maintaining a target expected return.
An example of discrete optimization using Pyomo. The problem involves assigning teaching assistants to labs while minimising the total cost.
Learn the basics of dealing with conflicting goals, understand Pareto optimality, and apply the weighted sum method.
Optimize one objective while limiting others by applying the epsilon-constraint technique for controlled trade-offs.
Minimize deviations from target values using goal programming, ideal for problems with specific performance goals.
Formulate the TSP by finding the shortest route through all cities and learn to model it using binary variables and subtour elimination constraints.
Model and solve the classic N-Queens puzzle by using binary variables and logical constraints to ensure no two queens attack each other.
Learn how to create a simple desktop application by building a functional temperature converter using input fields, buttons, and labels.
Learn how nature-inspired optimization algorithms work and why they are effective for solving complex, black-box problems.
Understand the PSO algorithm and apply it in MEALPy to solve a basic optimization problem and visualize its convergence.
Apply the WOA algorithm to find optimal solutions and track its performance across multiple runs.
Run algorithms multiple times, compare their convergence curves, and rank results for consistent performance.
Compare different metaheuristic algorithms on the same problem and evaluate which one produces the best solution.
Measure and compare execution times of different algorithms to evaluate both speed and performance.
Use the penalty method to solve constrained optimization problems by converting them into unconstrained ones.
Solve the cable selection problem with MEALPy and compare its performance with Pyomo to highlight key differences.
Python Optimization using Pyomo & MEALPy (Arabic Course)
احتراف نماذج الأمثله الرياضية
(Optimization)
في بايثون باستخدام
Pyomo و MEALPy
أمثلة هندسية عملية خطوة بخطوة
This course takes you step by step from the very basics of Python to solving advanced optimization problems using Pyomo and MEALPy.
It is taught in Arabic, with all explanations, examples, and walkthroughs designed to be clear and accessible.
You will start by learning how to write clean and efficient Python code, then move on to working with data using Pandas and NumPy. After that, you will learn how to model mathematical problems, define decision variables, objectives, and constraints, and solve them using Pyomo’s deterministic solvers.
In the second part, you will explore metaheuristic optimization with MEALPy and learn how population-based algorithms can handle complex or black-box problems that are hard to model with classical methods. By the end of the course, you will be able to design and solve a variety of optimization problems, compare the performance of exact Pyomo solvers with MEALPy algorithms, and interpret and visualize your results.
The course is suitable for motivated beginners and intermediate learners in engineering, data, or research who want practical, project-oriented skills.
All notebooks, datasets, and source code are provided and can be run easily in Google Colab or on your local machines. ما الذي ستتعلمه
كتابة أكواد بايثون باستخدام المتغيرات وعوامل التشغيل وتدفق التحكم
إنشاء دوال ووحدات وإتقان البرمجة الكائنية (OOP)
تحليل البيانات باستخدام مكتبات Pandas و NumPy
صياغة وحل نماذج خطية، وغير خطية، وعددية صحيحة باستخدام Pyomo
تطبيق طرق التحسين متعدّد الأهداف: المجموع الوزني، إبسيلون، وبرمجة الأهداف
حل مشاكل التحسين الثنائية مثل TSP و N-Queens
تصميم واجهات رسومية باستخدام Tkinter
تطبيق خوارزميات التحسين الاستدلالي باستخدام MEALPy
تحليل النتائج إحصائيًا باستخدام SciPy
فهم أساسيات الذكاء الاصطناعي ودور التحسين في بناء الأنظمة الذكية
ما الذي ستبنيه
مشروعات عملية تشمل:
لوحات تحليل بيانات باستخدام Pandas وNumPy
نماذج تحسين متقدمة في Pyomo
حلول متعددة الأهداف وتحليل حدود Pareto
تطبيقات خوارزميات MEALPy الحديثة
تطبيق واجهة رسومية كاملة
كل ذلك في حزمة واحدة تضم 60 محاضرة عملية وأكثر من40 مثال تطبيقي.
الفئة المستهدفة
طلاب كليات الهندسة وعلوم الحاسب الراغبين في تعلم التحسين التطبيقي
الباحثون والأكاديميون المهتمون بالنمذجة الرياضية والخوارزميات
المحترفون الذين يرغبون في تحسين الأنظمة باستخدام أدوات بايثون
أي شخص يريد الجمع بين البرمجة والذكاء الاصطناعي والتحسين الرياضي
المتطلبات
معرفة بسيطة بالرياضيات (الجبر، الدوال، المجموعات)
تثبيت Anaconda و Jupyter Notebook
لا يشترط خبرة سابقة في البرمجة — كل المفاهيم تُشرح من البداية
عن المُحاضر
الأستاذ الدكتور شادي عبد العليم
أستاذ مشارك – خبير في الذكاء الاصطناعي والتحسين
دكتوراه في هندسة القوى والآلات الكهربائية – جامعة القاهرة (2013)
زميل، مجلس العلوم الأساسية – أكاديمية البحث العلمي والتكنولوجيا، القاهرة
(SM’21) IEEE في Senior Member عضو
IET عضو سابق في
جائزة الدولة التشجيعية في العلوم الهندسية (2017)
وسام الاستحقاق من الطبقة الأولى (2020)
ضمن قائمة أفضل 2٪ من العلماء عالميًا حسب تصنيف جامعة ستانفورد
مؤلف أكثر من 250 بحثًا علميًا و 13 كتابًا في نظم الطاقة والتحسين الرياضي
مميزات الكورس
أكثر من 14 ساعة من الفيديوهات عالية الجودة
60 محاضرة منظمة بالأكواد والملفات
إمكانية تحميل كل الموارد والمشروعات
وصول مدى الحياة من الحاسب أو الهاتف
شهادة إتمام معتمدة من Udemy
الموارد الإضافية
جاهزة للتنفيذ Jupyter ملفات
للتشغيل السريع (داخل المحاضرات) Google Colab روابط
ملفات تدريب وبيانات جاهزة