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