Re: Smart market program

2017-02-28 Thread Ray Zimmerman
Since the OPF solver expects a minimization problem, and runmarket() wants to 
maximize welfare it sets up the OPF problem to minimize the negative of the 
social welfare. So, it is the negative of the objective function that is equal 
to the social welfare.

Ray


> On Feb 27, 2017, at 6:18 AM, Ammar Raza  wrote:
> 
> Hello everyone,
> 
> Can you please tell me Why my Social Welfare is always in the negative? 
> 
> 
> Kind Regard,
> 
> Mohammad Ammar Raza
> 
> 
> 
> 
> On 16 February 2017 at 17:02, Ammar Raza  > wrote:
> Thank You
> 
> Kind Regard,
> 
> Mohammad Ammar Raza
> 
> 
> 
> 
> On 16 February 2017 at 16:48, Ray Zimmerman  > wrote:
> The generator offers (in offers.P.prc) are lower than their marginal cost (in 
> gencost). Selling below cost results in negative earnings.
> 
>Ray
> 
> 
> 
>> On Feb 16, 2017, at 11:37 AM, Ammar Raza > > wrote:
>> 
>> Actually, I am wondering why I am getting Negative Earning in my output?
>> 
>> Kind Regard,
>> 
>> Mohammad Ammar Raza
>> 
>> 
>> 
>> 
>> On 16 February 2017 at 16:32, Ray Zimmerman > > wrote:
>> I have no idea whether the results are what you expect, but it runs fine for 
>> me. If you want me to look at it further, please reduce it to a single call 
>> to runmarket() (with a specific set of inputs) so that I can reproduce the 
>> error. Also, make sure to describe the result you get (what error message if 
>> it gives you an error) and what you expected to get.
>> 
>> Ray
>> 
>> 
>>> On Feb 16, 2017, at 9:53 AM, Ammar Raza >> > wrote:
>>> 
>>> can you please look at it.
>>> 
>>> Kind Regard,
>>> 
>>> Mohammad Ammar Raza
>>> 
>>> 
>>> 
>>> 
>>> On 16 February 2017 at 14:44, Ray Zimmerman >> > wrote:
>>> I don’t have the case file you are using so I can’t run your example. Also, 
>>> I don’t have time to debug your code. If you can reduce it to a single call 
>>> to runmarket() that is not behaving as you expect, I’m happy to attempt to 
>>> clear up any questions you may have.
>>> 
>>>Ray
>>> 
>>> 
>>> 
 On Feb 16, 2017, at 6:29 AM, Ammar Raza > wrote:
 
 Hello all,
 
 I am working on a smart market of a case 30 buses and I wrote a program. 
 can you please tell me where I did wrong?
 
 thank you
 Kind Regard,
 
 Mohammad Ammar Raza
 
 
 
 
>>> 
>>> 
>>> 
>> 
>> 
> 
> 
> 
> 



Re: Smart market program

2017-02-27 Thread Ammar Raza
Hello everyone,

Can you please tell me Why my Social Welfare is always in the negative?


Kind Regard,

Mohammad Ammar Raza




On 16 February 2017 at 17:02, Ammar Raza  wrote:

> Thank You
>
> Kind Regard,
>
> Mohammad Ammar Raza
>
>
>
>
> On 16 February 2017 at 16:48, Ray Zimmerman  wrote:
>
>> The generator offers (in offers.P.prc) are lower than their marginal
>> cost (in gencost). Selling below cost results in negative earnings.
>>
>>Ray
>>
>>
>>
>> On Feb 16, 2017, at 11:37 AM, Ammar Raza  wrote:
>>
>> Actually, I am wondering why I am getting Negative Earning in my output?
>>
>> Kind Regard,
>>
>> Mohammad Ammar Raza
>>
>>
>>
>>
>> On 16 February 2017 at 16:32, Ray Zimmerman  wrote:
>>
>>> I have no idea whether the results are what you expect, but it runs fine
>>> for me. If you want me to look at it further, please reduce it to a single
>>> call to runmarket() (with a specific set of inputs) so that I can
>>> reproduce the error. Also, make sure to describe the result you get (what
>>> error message if it gives you an error) and what you expected to get.
>>>
>>> Ray
>>>
>>>
>>> On Feb 16, 2017, at 9:53 AM, Ammar Raza  wrote:
>>>
>>> can you please look at it.
>>>
>>> Kind Regard,
>>>
>>> Mohammad Ammar Raza
>>>
>>>
>>>
>>>
>>> On 16 February 2017 at 14:44, Ray Zimmerman  wrote:
>>>
 I don’t have the case file you are using so I can’t run your example.
 Also, I don’t have time to debug your code. If you can reduce it to a
 single call to runmarket() that is not behaving as you expect, I’m
 happy to attempt to clear up any questions you may have.

Ray



 On Feb 16, 2017, at 6:29 AM, Ammar Raza  wrote:

 Hello all,

 I am working on a smart market of a case 30 buses and I wrote a
 program. can you please tell me where I did wrong?

 thank you
 Kind Regard,

 Mohammad Ammar Raza



 



>>> 
>>>
>>>
>>>
>>
>>
>


untitled.fig
Description: Binary data


Re: Smart market program

2017-02-16 Thread Ammar Raza
Actually, I am wondering why I am getting Negative Earning in my output?

Kind Regard,

Mohammad Ammar Raza




On 16 February 2017 at 16:32, Ray Zimmerman  wrote:

> I have no idea whether the results are what you expect, but it runs fine
> for me. If you want me to look at it further, please reduce it to a single
> call to runmarket() (with a specific set of inputs) so that I can
> reproduce the error. Also, make sure to describe the result you get (what
> error message if it gives you an error) and what you expected to get.
>
> Ray
>
>
> On Feb 16, 2017, at 9:53 AM, Ammar Raza  wrote:
>
> can you please look at it.
>
> Kind Regard,
>
> Mohammad Ammar Raza
>
>
>
>
> On 16 February 2017 at 14:44, Ray Zimmerman  wrote:
>
>> I don’t have the case file you are using so I can’t run your example.
>> Also, I don’t have time to debug your code. If you can reduce it to a
>> single call to runmarket() that is not behaving as you expect, I’m happy
>> to attempt to clear up any questions you may have.
>>
>>Ray
>>
>>
>>
>> On Feb 16, 2017, at 6:29 AM, Ammar Raza  wrote:
>>
>> Hello all,
>>
>> I am working on a smart market of a case 30 buses and I wrote a program.
>> can you please tell me where I did wrong?
>>
>> thank you
>> Kind Regard,
>>
>> Mohammad Ammar Raza
>>
>>
>>
>> 
>>
>>
>>
> 
>
>
>


Re: Smart market program

2017-02-16 Thread Ammar Raza
can you please look at it.

Kind Regard,

Mohammad Ammar Raza




On 16 February 2017 at 14:44, Ray Zimmerman  wrote:

> I don’t have the case file you are using so I can’t run your example.
> Also, I don’t have time to debug your code. If you can reduce it to a
> single call to runmarket() that is not behaving as you expect, I’m happy
> to attempt to clear up any questions you may have.
>
>Ray
>
>
>
> On Feb 16, 2017, at 6:29 AM, Ammar Raza  wrote:
>
> Hello all,
>
> I am working on a smart market of a case 30 buses and I wrote a program.
> can you please tell me where I did wrong?
>
> thank you
> Kind Regard,
>
> Mohammad Ammar Raza
>
>
>
> 
>
>
>


example7.m
Description: Binary data


case30_1.m
Description: Binary data


Re: Smart market program

2017-02-16 Thread Ray Zimmerman
I don’t have the case file you are using so I can’t run your example. Also, I 
don’t have time to debug your code. If you can reduce it to a single call to 
runmarket() that is not behaving as you expect, I’m happy to attempt to clear 
up any questions you may have.

   Ray



> On Feb 16, 2017, at 6:29 AM, Ammar Raza  wrote:
> 
> Hello all,
> 
> I am working on a smart market of a case 30 buses and I wrote a program. can 
> you please tell me where I did wrong?
> 
> thank you
> Kind Regard,
> 
> Mohammad Ammar Raza
> 
> 
> 
> 



Re: Smart market program

2017-02-16 Thread Ammar Raza
please check the code I have already did it.

Kind Regard,

Mohammad Ammar Raza




On 16 February 2017 at 11:33, 严超 <1499730...@qq.com> wrote:

> I think you should upload the runmarket function to check the correcness
> of the code.
>
>
> -- 原始邮件 --
> *发件人:* "Ammar Raza";;
> *发送时间:* 2017年2月16日(星期四) 晚上7:29
> *收件人:* "matpower-l";
> *主题:* Smart market program
>
> Hello all,
>
> I am working on a smart market of a case 30 buses and I wrote a program.
> can you please tell me where I did wrong?
>
> thank you
> Kind Regard,
>
> Mohammad Ammar Raza
>
>
>
>