Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Derive a matlab code to solve the below: Auctions are common in economic theory. Prior to deregulation of the electricity industry, the system operator (
Derive a matlab code to solve the below: Auctions are common in economic theory. Prior to deregulation of the electricity industry, the system operator SO had access to the information about the actual cost of generation from all generators. In the deregulation industry, generators offer prices to supply energy in an auction, and consumers in some markets, may submit bid prices for the purchase of energy. Although economic theory suggests that in the presence of competition, the bid and offer prices approach marginal cost MC in the longer run, they need not be related to actual cost in every hour, particularly in the shorter term. The SO is the bid taker who chooses generators to supply energy and reconcile demand in a manner not dissimilar to that of an auction. The following problems related to the electricity industry illustrate the reason for our interest in auctions.
Formulation and discussion of the problem:
Table shows the resolution of a simple auction in which there are offers to sell and bids to buy products. Note that in a normal simple dispatch problem above, there were only offers to sell. In the table, price and quantity of offers and bids of different entities are shown.
Table : Simple Auction Data
SIMPLE AUCTION DATA
UNSORTED
SORTED
Offers
Entity
MW
$MW
Entity
MW
$MW
Choice Variables
Product Q$
A
B
A
A
A
A
B
A
B
B
B
B
Bids
X
X
X
X
X
Y
Y
Y
Y
Y
Y
X
Index
The offers and bids are first sorted in increasing order of price for offers and decreasing order of prices for bids. The sorted offers and bids represent an increasing and a decreasing curve. The search is for the point of intersection of the two curves equilibrium This is the goal in many other physical problems including that of finding the equilibrium of demand and supply curves. If the demand curve bids to buy is denoted by and the supply offer to sell curve is denoted by then consider the expression,
UBFETEEM Labs Dr D Setlhaolo Page
which denotes the area between and from the origion to Therefore in the above expression, D is the difference between the two areas which is a maximum at the equilibrium. The descrete form of the above expression is used in simulating auctions in a linear optimization program LP
Draw the relationship between offers and bids. The objective function OF of the problem is to maximise the area between the two curves of the sorted offers and bids. In order to do so we set up choice variables, where we select quantities that are nonnegative and less than or equal to the offered or bid quantity. The solver procedure is asked to select these choice variables subject to constraints. The product of the quantity selected and the price gives the area under the offer curve and the bid curve.
There is one more constraint: The total quantity of offers selected must be equal to the quantity of bids awarded.
Mathematical Statement of the Propblem
Given offers to supply and bids to buy with quantity price relationships, choose and
Maximise Sigma Sigma
st;
; ;
Sigma Sigma
offer
and
sell
Solution Methodoly
Use Matlab Linear Programming LP solver to derive the solution of this problem.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started