Can you send me the details I need to reproduce your result? The simple OPF on 
that case does show consistency between the objective function value and the 
sum of the generator costs.


>> r = runopf('t_auction_case');

>> sum(totcost(r.gencost, r.gen(:, PG)))


ans =


 -245.2078


>> r.f


ans =


 -245.2076

—Ray


On Oct 17, 2023, at 12:25 AM, Dr. D. Karthikaikannan 
<[email protected]> wrote:

this is the result i got it when i run for t_auction_case
================================================================================
|     Market Summary                                                           |
================================================================================
Dispatch period duration: 1.00 hours
Gen  Bus     Pg      Price    Revenue   Fix+Var   Strt/Stp   Total    Earnings
 #    #     (MW)    ($/MWh)     ($)     Cost ($)  Cost ($)  Cost ($)     ($)
---  ---  --------  --------  --------  --------  --------  --------  --------
  1    1    35.32    50.000   1765.78   1172.63      0.00   1172.63    593.16
  2    2    36.00    50.241   1808.66   1200.00      0.00   1200.00    608.66
  3  220    36.00    50.337   1812.13   1200.00      0.00   1200.00    612.13
  4   27    36.00    51.024   1836.87   1200.00      0.00   1200.00    636.87
  5   23    36.00    52.170   1878.11   1200.00      0.00   1200.00    678.11
  6   13    36.00    52.983   1907.40   1200.00      0.00   1200.00    707.40
  7    7   -30.00    51.821  -1554.62  -3000.00      0.00  -3000.00   1445.38
  8   15   -10.00    54.031   -540.31  -1000.00      0.00  -1000.00    459.69
  9   30   -20.00    55.621  -1112.42  -2000.00      0.00  -2000.00    887.58
          --------            --------  --------  --------  --------  --------
Total:     155.32             7801.60   1172.63      0.00   1172.63   6628.97

Converged in 1.14 seconds
Objective Function Value = 2985.78 $/hr

I crossed the objective function value by using 
sum(totcost(mpc_out.gencost,mpc_out.gen(:,PG))). the answer is 1172.63.
what the value 2985.78 represents.                                              
          |

________________________________
From: 
[email protected]<mailto:[email protected]>
 
<[email protected]<mailto:[email protected]>>
 on behalf of Ray Daniel Zimmerman <[email protected]<mailto:[email protected]>>
Sent: Tuesday, October 17, 2023 1:45 AM
To: MATPOWER-L <[email protected]<mailto:[email protected]>>
Subject: Re: What the objective function denotes in the smart market

The smartmarket code simply sets up the cost functions and generator limits for 
the OPF problem. The OPF minimizes total generation cost. In the case that 
includes dispatchable loads, modeled as negative generation, this cost is 
essential the cost of the normal generators plus the negative cost of the 
dispatchable loads. This is the same as the net benefit (value of dispatchable 
load minus cost of generation), with a change of sign.

If that still doesn’t seem to match for you, please give me minimal example I 
can use to reproduce what you’re seeing.

     Ray


On Oct 14, 2023, at 12:17 AM, Dr. D. Karthikaikannan 
<[email protected]<mailto:[email protected]>> wrote:

Dear sir,
In optimal power flow the objective function is sum of the cost function and 
benefit function of generator and load respectively. I run smart market and 
cross checked the objective function displayed with the corresponding cost 
function and generation using total cost function and it is not equal. what 
actually the objective function value denotes in smart market.


D.Karthikaikannan


Reply via email to