
Introduction : what is optimization. Download the attached material below.
Important
Overview of this chapter.
Initial implementation steps. Download the attached material below.
Implementation and output generation. Download the attached material below.
How variables are grouped, as well as parameters. Download the attached material below.
How to model the summation of variables. Download the attached material below.
How to model the repetitive application of constraints. Download the attached material below.
How to model multiple statements on a line. Download the attached material below.
How to create comment sections. Download the attached material below.
How to apply code conditionally. Download the attached material below.
How to model implicit and explicit variable declarations. Download the attached material below.
Mixed Integer Linear Programs. Download the attached material below.
How to write output data. Download the attached material below.
How to conduct input initialization from Excel. Download the attached material below.
How to implement procedural coding. Download the attached material below.
How to implement functional coding. Download the attached material below.
How to gain insights into the structure of a problem. Download the attached material below.
How to implement multi-dimensional variables. Download the attached material below.
A real world consultancy case. The code is downloadable below. Also, below is an academic paper with optimization, so you see just for demonstration of the academic use of optimization.
Modelling and solving in Python using Pyomo. The code is downloadable below. Also, below is an academic paper with optimization, so you see just for demonstration of the academic use of optimization.
Modelling and solving in GAMS. The code is downloadable below.
Modelling and solving in Mosel. The code is downloadable below.
Description of this chapter
In optimization, unboundedness occurs when the objective function can grow indefinitely without violating any constraints, while infeasibility arises when no solution satisfies all the given constraints simultaneously. Optimality is when the optimal solution is found.
The code is downloadable below. Also, a paper is available below for demonstration.
In optimization models, activity refers to whether a variable is actively contributing to the solution, duality involves the relationship between the primal and dual problems capturing shadow prices, and slackness measures the gap between resource usage and constraints, governed by the complementary slackness condition.
Belo you can download the code.
Second part , with more details.
Concluding remarks.
5 industry case studies for free
WHO I AM: I hold a PhD in Energy from Imperial College London. I teach practical, real-world data science specifically for the energy sector.
REGULAR ENHANCEMENTS: This course is reviewed periodically with updates to reflect the modern energy market.
STUDENT BONUS: Note: Students who enroll in this course will receive access to the Energy Data Scientist community.
What You'll Learn:
How to model and solve real-world optimization problems using GAMS, Pyomo, and Mosel
How to handle large-scale optimization problems with multiple constraints and variables
How to master fundamental concepts: optimality, infeasibility, unboundedness, duality, and slackness
How to use Mosel's advanced features including MILP models, Excel integration, and multidimensional variables
How to translate real industrial problems into mathematical optimization models
How to choose the right tool (Pyomo, GAMS, or Mosel) for specific optimization challenges
Perfect For:
Energy economists and planners optimizing grid operations and resource allocation
Operations research analysts solving logistics and supply chain problems
Environmental consultants forecasting emissions and planning sustainability strategies
Graduate students in engineering, economics, or operations research
Data scientists adding optimization capabilities to their toolkit
Financial analysts optimizing portfolios and risk management
Industrial engineers improving manufacturing and production systems
Anyone needing to solve complex decision-making problems quantitatively
Why This Matters:
Optimization drives trillion-dollar decisions in energy markets, supply chains, and climate planning. As industries race toward net-zero, professionals who can model complex systems and forecast emissions are commanding premium salaries. Whether optimizing renewable energy integration, minimizing transportation costs, or forecasting CO₂ trajectories for policy planning, these skills are non-negotiable for data-driven decision making. GAMS, Pyomo, and Mosel are the industry standards used by energy companies, consulting firms, and research institutions worldwide. Master the tools that power everything from Google's data center optimization to national grid planning. These capabilities open doors to senior analyst and optimization engineer roles paying $150,000-280,000+ in energy, logistics, finance, and environmental consulting.