Mastering Energy and Power System Optimization in GAMS
4.5 (329 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
13,967 students enrolled

Mastering Energy and Power System Optimization in GAMS

Learn GAMS like a Professional with Dozens of Practical Examples Learn, take your GAMS skills to the next level now!
4.5 (329 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
13,967 students enrolled
Created by A. Soroudi
Last updated 5/2020
English [Auto]
Current price: $139.99 Original price: $199.99 Discount: 30% off
23 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 5.5 hours on-demand video
  • 27 downloadable resources
  • 2 Practice Tests
  • Full lifetime access
  • Access on mobile and TV
  • Assignments
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • How to start coding in GAMS?
  • How to fix your GAMS code ?
  • How to mathematically formulate your problems in GAMS?
  • Solve Optimal AC/DC power flow
  • Model Energy Storage in GAMS
  • How to formulate and implement the demand response in GAMS?
  • is Multi-Objective Optimization covered in this course ? YES
  • PMU allocation is implemented in GAMS
  • How to model and implement Unit commitment ?
  • How to formulate the environmental constraints in energy problems ?
  • Build a complete understanding of GAMS from the ground up!
  • Learn advanced GAMS features, like conditional statements, options, reporting
  • How to turn optimization skills to income for yourself ?
  • No extensive prior knowledge of GAMS is required
  • A desire to learn new concepts like GAMS coding
  • A passion for decision making and optimisation
  • A laptop or PC to run your code.
  • No need to have a full GAMS licence to run your codes

**Brand New For June 2020 - The Bestselling Power system optimization GAMS Course on Udemy**

Join over 18,000 of your fellow optimization experts in the energy and power system industry in learning the fundamentals of the power system and energy optimization.

I will walk you through every step of GAMS coding with real-life case studies, actual experiments, and tons of examples from around different disciplines.

By the end of this course, you'll be able to:

  • Code your own optimization problem in GAMS.

  • Receive your official certificate

The developed course is suitable for you even if you have no background in the power systems.

In this Energy and Power System Optimization in GAMS course you will learn:

  • How to formulate your problem and implement it in GAMS and make optimal decisions in your real-life problems

  • How to code efficiently, get familiarised with the techniques that will make your code scalable for large problems

  • How to design an action block with a clearly defined conversion goal

  • How to run sensitivity analysis in GAMS to predict the outcome of a decision if a situation turns out to be different compared to the key predictions.

For your convenience the course is broken into two sections :

  • General GAMS coding (Pure GAMS, elements, loops, multi-objectives, conditional statements, Examples)

  • Power system GAMS coding (Static/dynamic economic/environmental dispatch, AC/DC OPF, Storage, DR, PMU, ...)

  • .......

  • ... and much, much more!

By finishing this course, you will have the power to transform your coding skills into a powerful decision making machine. .

  • If you think this GAMS coding is complicated, it's not.

  • If you think GAMS coding is time-taking, it's not.

  • If you think watching this course won't make a difference in your professional career ... think again.

I've consulted with several companies and researchers around the world and have consulted them on how to use optimization techniques in their business. Trust me, I learned all this the hard way.

Along with the video content of the course, there are many bonuses.


  • Downloadable resources and guides

  • An audio version of the course to listen on the go

  • Q&A videos the answer your specific questions

  • Assignments that make you productive while taking the course

  • An instructor who truly cares about your success

This is the course on landing page design I wish I had when I was first starting out!


We'll be here for you every step of the way. If you have any questions about the course content or anything related to this topic, you can always post a question in the course or send me a direct message.

We want to make this the best course on how to use GAMS. So if there is any way we can improve this course, just tell us and we'll make it happen.

Enroll today and enjoy:

  • Lifetime access to the course and all future updates

  • Over 6 hours of high quality, up to date video lectures

  • Exercises and feedback

  • Access to the student-only discussion forum

  • 30 day, no questions asked, money-back guarantee

  • Over 11,000 students enrolled

  • 4.5 average student rating

With our 30-day 100% money-back guarantee, there's no reason to hesitate.

I'll give you two more reasons why you should enroll right this second:

Your investment in this course will quickly be paid back even just by implementing some of the techniques I share with you. There are hundreds of gold nuggets to choose from, making this course the best investment in your own education and future success.

While today is still the best day you can get started with GAMS coding, it will get harder for engineers as the markets get more and more competitive. You want to start as soon as you can (like now) to take advantage of this growing market. Instead of struggling and trying to do everything yourself, just learn from someone who has already figured it out.


See you inside!


Who this course is for:
  • Anyone who needs to make some sort of decisions
  • Any discipline that requires optimization and decision making
  • Power system academics or industry experts
  • Beginner students in power system operation and planning
  • PhD/MSc students in power system operation and planning
  • PhD/MSc students in energy systems
  • Power system utility R&D staffs
  • Entrepreneurs
  • Business Owners involved in Energy industry
Course content
Expand all 36 lectures 05:17:58
+ Section 0
1 lecture 00:27

Before you start this module please have quick look at this video

Preview 00:27
+ Introduction (GAMS elements)
17 lectures 02:25:58
  • What is the decision making? 

  • Some practical examples

  • What is the objective function?

  • What is the constraint?

Preview 07:41

In a given graph, find the minimum spanning tree:

Optimal Decision Making Elements
4 questions

In the transportation problem, answer the following questions

In transportation problem
4 questions

This video explains how to install GAMS on a windows machine

Preview 06:15

In this lesson, you will get familiar with the general structure of each GAMS code

Preview 04:56
  • What is set ?

  • How to deal with sets in GAMS ? 

  • Syntax ? 

Sets in GAMS
  • What is Scalar?

  • How to deal with Scalars in GAMS ? 

  • Syntax ? 

Scalars in GAMS
  • What is parameter?

  • How to deal with Parameters in GAMS ? 

  • Syntax ? 

Parameters in GAMS
  • What is Table?

  • How to deal with Tables in GAMS ? 

  • Syntax ? 

Table in GAMS
  • Real variables

  • Binary variables

  • Integer variables 

  • SOS1

  • SOS2

  • Semicont

  • SemiInt

How to define lower and upper bounds for variables ?

Variables in GAMS

How to define equations in GAMS?

What is the syntax ?

Equations in GAMS
  • What kind of optimisation models can be solved in GAMS ? 

  • What is my model type ? 

Model definition in GAMS

How to select the right solver for my model in GAMS?

Preview 03:10

In this session you will learn how to code a linear programming problem in GAMS 

Preview 09:30


Example 1 LP
1 question
Example 2 LP
1 question

In this lecture you will get familiar with the duality concept in linear programming problems

Duality Theorem in LP
Solve the Dual of the LP examples
Dual of the primal LP
1 question

Mixed integrer programming in transportation problem is discussed here

Mixed integer quadratic programming
Suppose we have two Binary variables (x,y) , how can we linearize the following equation? Z=XY
Linearize the multiplication of two binary variables
2 questions

Conditional Expressions, Assignments and Equations


Conditional statements in GAMS

How to define a model in loops in GAMS environment? 


In this lecture you will learn:

  • What is the optimisation and decision making ?

  • What is an objective function ?

  • What is a constraint ? 

  • What is multi-objective optimisation ?

  • What is Pareto optimal front ?

  • How to code a Pareto optimal front in GAMS ?

Multiobjective Optimisation in GAMS
+ General examples in GAMS
8 lectures 43:58

In a given circle find a rectangle of maximal area.

In a given circle find a rectangle of maximal area.

In a given sphere find a cylinder of maximal volume

Cylinder in a Sphere

“A woman at a point A on the shore of a circular lake with radius 2 mi wants to arrive at the point C diametrically opposite A on the other side of the lake in the shortest possible time (see the figure). She can walk at the rate of 4 mi/h and row a boat at 2 mi/h. For what value of the angle θ shown in the figure will she minimize her travel time?“

Travel time minimisation

A and B are two given points on the same side of a line ℓ. Find a point D on ℓ such that the sum of the distances form A to D and from D to B is a minimum.

Herons Problem

(Steiner) In the plane of a triangle, find a point such that the sum of its distances to the vertices of the triangle is minimal.

Preview 03:15

In this lecture you will learn how to code in GAMS for finding the shortest paths between nodes in a graph, which may represent, for example, road networks.

Shortest path via LP

The travelling salesman problem (TSP) asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city and returns to the origin city?"

Each city should be met only once

Every city should be visited

Traveling Sales Person (TSP)

In these slides, you will see how to formulate the game clash of clans as MIP and solve it in GAMS

Modeling the Game 'Clash of clans' as a mixed integer linear programming
+ Power system optimization
10 lectures 02:07:35

In this video you will learn how to find and have access to Power system optimization library in GAMS website.

Preview 04:42

Economic Dispatch problem modelling in GAMS
What is the impact ?
Increase the demand value and see the impact
2 questions

Add a new generating unit and investigate the impact on total operating cost

What is the impact of adding a new generating unit ?
2 questions

In this lesson you will learn how to use the GAMS for solving the Dynamic economic dispatch problem

Dynamic Economic Dispatch

Can you model the DR in DED ? 

Demand response modelling in DED
1 question
Dynamic Economic Dispatch with Storage

DC Optimal power flow modelling will be discussed

2 bus Code
1 question

Find the highest loaded line

Line loading
1 question

The AC -OPF takes into account the non-linear KVL-KCL constraints and tries to determine the optimal generating schedules of units


In this lecture you will learn how to calculate the LMP in GAMS

Locational Marginal Price (LMP)

Security constrained optimal power flow is modelled in this lecture. The N-1 contingencies can cause overloading the remaining lines.

Security Constrained DC-OPF (N-1)

The unit commitment problem is explained in this lecturer

Unit commitment

This session provides a solution for increasing the power system observability by allocation of Phasor Measurement Units (PMU) problem in GAMS. The PMU is able to measure the voltage phasor at the connection bus and also it measures the current phasor of any branch connected to the bus hosting the PMU.

PMU allocation