I’m afraid I don’t have the time (or the information from you that I would need) to look through the specifics of your case and interpret the results. Presumably, there is some zero-cost generation (renewable?) that is marginal during those hours. For example, if your wind has zero cost, and some of it is being curtailed in those hours, that could set the nodal price to zero for those hours. Answering the question of why it is optimal to curtain zero-cost generation is question that would take more investigation on your part.
Regarding the total cost, you can get the value of the objective function from mdo.results.f, but that includes other costs as well. To compute generation costs, you would have to do it manually using the mpc for each period and, if your problem is not deterministic, for each scenario/contingency (weighted by the appropriate probabilities). That is, you can find the generator cost for period t, scenario j, contingency k with the following … mpc = mdo.flow(t,j,k).mpc; total_cost = sum(totalcost(mpc.gencost, mpc.gen(:, PG))); Ray > On Nov 2, 2017, at 11:39 AM, Vlad <vlad_...@rambler.ru> wrote: > > Dear Ray, > > Could you please help me. Don't cleary understand the resilts with the price > I've got. Why there are some zero values? > > ========== LAM_P ========== > > Bus t = 1 t = 2 t = 3 t = 4 t = 5 t = 6 t = 7 t = 8 > t = 9 t =10 t =11 t =12 t =13 t =14 t =15 t =16 t > =17 t =18 t =19 t =20 t =21 t =22 t =23 t =24 > > ---- ------- ------- ------- ------- ------- ------- ------- ------- > ------- ------- ------- ------- ------- ------- ------- ------- > ------- ------- ------- ------- ------- ------- ------- ------- > > 1 156.00 78.00 - 156.00 - 156.00 78.00 78.00 > 78.00 78.00 78.00 78.00 - - - - > 78.00 78.00 78.00 78.00 78.00 234.00 78.00 - > > 2 156.00 78.00 - 156.00 - 156.00 78.00 78.00 > 78.00 78.00 78.00 78.00 - - - - > 78.00 78.00 78.00 78.00 78.00 234.00 78.00 - > > > > Is it possible to get the total cost of the generation from the units for the > period or 24 h? > > Best regards, > > Vladislav >