Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: A minimization problem with variable length
Replies: 0

 christiankaas@gmail.com Posts: 1 Registered: 5/4/13
A minimization problem with variable length
Posted: May 4, 2013 4:22 PM

I am currently modeling a simple short-run marginal cost dispatch for plants in an electricity system. I developed a (slow, iterative) implementation of the problem in Excel/VBA, but am now interested in experimenting with optimization approaches in Mathematica instead.

I have been experimenting with different ways to pose the problem in Mathematica, but have gotten quite stuck, and would appreciate some pointers.

The problem looks more or less like the table below:

Plant SRMC (\$/MWh) Max (MW) Q (Dispatch MW)
Plant 1 5.0 500 Q1 (?)
Plant 2 10.0 500 Q2 (?)
=85 =85 =85 =85
Plant n 25.0 500 Qn (?)

If I had a small (and fixed...) number of plants to optimize across, I would write something like the following to minimize the total energy cost, such that (1) no plant exceeds its maximum capacity, (2) the sum of dispatch is equal to demand:

Equation 1
Minimize[(SRMC1*Q1)+(SRMC2*Q2),Q1<=Max1&&Q2<=Max2,Q1+Q2==Demand,{Q1,Q2}]

This is where I could use a push in the right direction. In real life, the number of the plants in the model may vary, and total several dozen or more plants. Writing the problem out fully is therefore unwieldy.

Is there a way to pose a variable length minimization problem, perhaps taking advantage of Mathematica's notation capabilities?

Equation 2
Minimize[sum_(i=1)^n (Q_i*P_i),Q_i<=Max_i...

Or should I be looking for a different approach to the problem?

Thank you very much for your thoughts.

Christian