mpopt=mpoption('OPF_ALG', 320);
offers.P.qty = [10 120 120; 10 145 145; 10 130 130];
offers.P.prc = [15 25 50; 10 30 40; 10 20 55];
bids = [];
mkt = struct();
[r, co] = runmarket('case9', offers, bids, mkt, mpopt);

On Nov 3, 2011, at 10:12 AM, Dailan Xu wrote:

> Thank you. Could you please give an example? Because with bids also I cannot 
> do runmarket. I will be appreciated if you help me. My problem is this I 
> cannot change the solution algorithm in runmarket.
> Best Regards
> 
> D. Xu
> 
> 
> 
> On Thu, Nov 3, 2011 at 15:08, Ray Zimmerman <[email protected]> wrote:
> See help runmarket for the proper calling syntax. The 3rd argument is bids, 
> not mpopt.
> 
> -- 
> Ray Zimmerman
> Senior Research Associate
> 419A Warren Hall, Cornell University, Ithaca, NY 14853
> phone: (607) 255-9645
> 
> 
> 
> 
> On Nov 3, 2011, at 5:22 AM, Dailan Xu wrote:
> 
>> Dear Prof. Zimmerman,
>> 
>> I want to do runmrket and solve it with other runopf solutions such as LP, 
>> TRALM and etc. When I run the following code with offers it doesn't work. 
>> Could you please help me?
>> 
>> mpopt=mpoption('OPF_ALG', 320);
>> offers.P.qty = [10 120 120; 10 145 145; 10 130 130];
>> offers.P.prc = [15 25 50; 10 30 40; 10 20 55];
>> [r, co] = runmarket('case9', offers, mpopt);
>> 
>> Best Regards
>> 
>> D. Xu
> 
> 

Reply via email to