Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: A minimization problem with variable length
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
christiankaas@gmail.com

Posts: 1
Registered: 5/4/13
A minimization problem with variable length
Posted: May 4, 2013 4:22 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.