Re: How to get the PMU data for IEEE 30 bus system

2022-09-06 Thread Ray Daniel Zimmerman
I’m sorry, but this does not sound like a MATPOWER question to me … maybe there is a forum somewhere for Simscape Electrical toolbox questions. Ray > On Sep 3, 2022, at 11:08 AM, naime ahmadi wrote: > > Hello, > I want to get PMU data for IEEE 30 bus system. According to my

Re: LODF but for reconnection of a open line

2022-09-01 Thread Ray Daniel Zimmerman
ing the LODF. I will try testing against results from PowerWorld and see if the -LODF approach works. Richard On Wed, 31 Aug 2022 at 22:57, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: Hello Richard, Do you know the precise definition of the LCDF? The LODF_ij is the chan

Re: LODF but for reconnection of a open line

2022-08-31 Thread Ray Daniel Zimmerman
Hello Richard, Do you know the precise definition of the LCDF? The LODF_ij is the change in flow in branch i resulting from a branch j outage as a fraction of the pre-outage flow on branch j. So would the LCDF_ij be the change in flow in branch i as a result of a branch j clousre as a fraction

Re: mpc.branch

2022-08-26 Thread Ray Daniel Zimmerman
utlook for Android<https://aka.ms/AAb9ysg> From: bounce-126765030-91948...@list.cornell.edu<mailto:bounce-126765030-91948...@list.cornell.edu> mailto:bounce-126765030-91948...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@cor

Re: mpc.branch

2022-08-23 Thread Ray Daniel Zimmerman
Hi Scott, The explanation is in the fine print … namely the 3rd footnote under Table B-3. Those extra columns are included in the output but are typically not included (or else they are ignored) on input. Ray On Aug 22, 2022, at 3:16 PM, Scott seedell mailto:scottseed...@hotmail.com>>

Re: Active and reactive power losses - Question

2022-07-18 Thread Ray Daniel Zimmerman
Hi Fábio, Your Qloss includes both the series reactive losses returned by get_losses() in the imaginary part of the loss return value as well as the line charging capacitance returned in the chg (or fchg and tchg) return value. See help get_losses() for details about the line charging part.

Re: documentation ideas for new versions of MATPOWER

2022-07-15 Thread Ray Daniel Zimmerman
mples: https://opencobra.github.io/cobratoolbox/stable/index.html https://cosmomvpa.org/index.html And the sphinx complement https://github.com/sphinx-contrib/matlabdomain I hope this helps and best regards Álvaro Jaramillo Duque On Tue, Jul 12, 2022 at 5:05 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>

Re: documentation ideas for new versions of MATPOWER

2022-07-15 Thread Ray Daniel Zimmerman
3...@list.cornell.edu> mailto:bounce-126672378-83373...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@cornell.edu>> Date: Tuesday, July 12, 2022 at 5:05 PM To: MATPOWER-DEV-L mailto:matpower-de...@list.cornell.edu>> Subject: documentation ideas for new version

documentation ideas for new versions of MATPOWER

2022-07-12 Thread Ray Daniel Zimmerman
Hi all, Sorry, things have been so quiet here on the developers list. I know I’m not nearly as good at communicating with all of you as I should be. I’ve been hard at work on MP-Element, which is turning out to be essentially a complete rewrite of

Re: [EXTERNAL] TSPOPF PDIPM AC solver not a valid value

2022-06-30 Thread Ray Daniel Zimmerman
f (line 75) [r, success] = opf(casedata, mpopt); Which I don’t know how to interpret. Thanks, Ivy From: bounce-126635453-91654...@list.cornell.edu<mailto:bounce-126635453-91654...@list.cornell.edu> mailto:bounce-126635453-91654...@list.cornell.edu>> On Behalf Of Ray Daniel Zimm

Re: TSPOPF PDIPM AC solver not a valid value

2022-06-21 Thread Ray Daniel Zimmerman
That error message is very strange. Are you sure you are using straight, single-quotes around the string arguments to mpoption? Like this ... mpopt = mpoption('opf.ac.solver','PDIPM') If so, I’d try reinstalling MATPOWER and TSPOPF and trying again. Ray On Jun 21, 2022, at 4:22 PM,

Re: Changing Swing Bus Voltage Dynamically

2022-06-13 Thread Ray Daniel Zimmerman
When running a power flow the voltage at swing and PV buses is controlled by the VG column of the corresponding generator in the gen matrix, not by the VM column in bus. Setting the corresponding mpc.gen(slack_gen_index, VG) to the desired value in your loop should accomplish what you are

Re: Reducing Network Problem

2022-06-10 Thread Ray Daniel Zimmerman
duction subroutine Related documentation Thanks, Lusha On Tue, May 24, 2022 at 12:35 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: Have you validated the original 2000 bus system? Can you solve a power flow or OPF on it? If so, could you post the exact error message you are

Re: Permission to use code

2022-06-01 Thread Ray Daniel Zimmerman
merman Just so I can be sure that I understood what you have shared with me, I need to include the BSD license within the files of my project so I would be legally allowed to use parts of the Matpower library? Regards Abdelrahman On Wed, Jun 1, 2022 at 1:45 PM Ray Daniel Zimmerman ma

Re: Permission to use code

2022-06-01 Thread Ray Daniel Zimmerman
Yes, the BSD license used by MATPOWER explicitly allows use and redistribution of the code as long as you meet the 3 conditions it lists. Regarding citing, please see https://matpower.org/citing/ for general information on citing

Re: Reducing Network Problem

2022-05-24 Thread Ray Daniel Zimmerman
Have you validated the original 2000 bus system? Can you solve a power flow or OPF on it? If so, could you post the exact error message you are seeing with MPReduction? Ray On May 22, 2022, at 11:22 PM, Lusha Wang mailto:lushawan...@gmail.com>> wrote: Hi Sir or Madam, I am trying to

Re: Determining Wind Profile

2022-05-18 Thread Ray Daniel Zimmerman
If it is a deterministic problem, then it should be as simple as setting up a profile to modify the PMAX of the wind generator of interest. For an example, see ex_wind_profile_d.m as used by most_ex5_mpopf() (see also Section 7.2.1 in the User’s

Re: Calculation of branch series losses and line charging injections using bus admittance matrix and bus voltages

2022-05-12 Thread Ray Daniel Zimmerman
I believe the best you can do from the bus admittance matrix is reconstruct the series branch parameters (r and x) from the off-diagonal terms and then use them in (9.1) to get the series losses. Unfortunately, the line charging injections are aggregated for all lines connected to a bus (and

Re: Overriding mpoption construct field

2022-05-09 Thread Ray Daniel Zimmerman
I’m not sure I fully understand the question. You can use the mpoption() function to create a MATPOWER options struct that you can then pass to runpf() or other MATPOWER functions. You can also use mpoption()to modify an existing MATPOWER options struct with standard recognized options. You

Re: the unit of gencost coefficients

2022-05-09 Thread Ray Daniel Zimmerman
The units of the cost function defined by gencost are in $/hr. So for a quadratic cost like the one in your example, the units of the last 3 columns are: $/(hr - MW^2) $/MWh $/hr Ray On May 9, 2022, at 1:27 AM, 122020316 <122020...@qq.com> wrote: Hi Prof.

Re: Energy cost time-varying in MOST

2022-04-26 Thread Ray Daniel Zimmerman
25 abr 2022 a las 14:02, Ray Daniel Zimmerman (mailto:r...@cornell.edu>>) escribió: Hi Diego, You should be able to do it just like any other profile (e.g. see ex_wind_profile.m and ex_load_profile.m), except you would set the 'table' field to CT_TGENCOST and the 'col' field to either

Re: Energy cost time-varying in MOST

2022-04-25 Thread Ray Daniel Zimmerman
Hi Diego, You should be able to do it just like any other profile (e.g. see ex_wind_profile.m and ex_load_profile.m), except you would set the 'table' field to CT_TGENCOST and the 'col' field to either CT_MODCOST_F or CT_MODCOST_X. See Section 9.3.5 in the MATPOWER User’s

Re: Warm start in runopf

2022-04-11 Thread Ray Daniel Zimmerman
Hi Ali, This is currently the best you can do to “warm start” the default OPF solver (MIPS) in MATPOWER. It is not a full warm start since it is only the primal solution that is initialized from the input case file, not the dual multipliers or the barrier parameter. Ray On Apr 10, 2022,

Re: Unable to run multiperiod problem of 9 bus system

2022-04-08 Thread Ray Daniel Zimmerman
On Apr 7, 2022, at 9:35 AM, Luiz Eduardo mailto:luiz.edua...@engenharia.ufjf.br>> wrote: I am facing the same problem. One thing that helped (but didn't solved) it was to insert capacitor banks at the PV buses. ;) On Wed, Apr 6, 2022 at 11:16 AM Ray Daniel Zimmerman mailto:r...@cornell.edu&g

Re: Code for solving security-constrained AC-OPF

2022-04-08 Thread Ray Daniel Zimmerman
This code was never released publicly. I’ll contact you off-list to discuss further. Ray > On Apr 6, 2022, at 8:52 PM, Min Zhou wrote: > > Respected Ray: > >I was trying to solve security-constrained ACOPF using matpower. I > was wondering how to get the code in reference [1] for

Re: Unable to run multiperiod problem of 9 bus system

2022-04-06 Thread Ray Daniel Zimmerman
Can you send me (off-list) the script(s) you are using to run these cases? I want to run them exactly as you are so I can reproduce the problem. Ray On Apr 6, 2022, at 3:14 AM, INDUJA SREENIVASAN mailto:isreeniva...@deakin.edu.au>> wrote: Respected Ray, I have been studying the case

Re: Number of Variable Limit

2022-03-22 Thread Ray Daniel Zimmerman
I believe that error message is coming from IPOPT and seems to indicate that the constraints or variable bounds are not consistent. For example, you may have a generator with PMIN > PMAX or a bus with VMIN > VMAX. I don’t believe there is a limit on the number of variables, unless you are

Re: [DCPF on DC System with LOSSES]

2022-03-21 Thread Ray Daniel Zimmerman
Currently, MATPOWER models AC networks with a very basic model of HVDC lines (see Section 7.6.3), but it does not really model full hybrid AC/DC systems yet. For the AC networks with individual HVDC lines that are modeled, it can solve the full non-linear (AC) PF and OPF or the linearized,

Re: wrong Cf and Ct

2022-03-19 Thread Ray Daniel Zimmerman
uld do it but the end result is the same. Jovan On Tue, Mar 15, 2022 at 7:48 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: While it is not impossible, I would be very surprised to discover that Cf and Ct (in makeYbus.m, I assume?) are incorrect, but if you can create a sm

Re: LP/MPS format of MATPOWER instances

2022-03-18 Thread Ray Daniel Zimmerman
I assume you are referring to DC OPF or MOST problems that can be solved by an LP solver. MATPOWER itself does not write out the models in LP or MPS formats, but some solvers can. Gurobi in particular can, and there may be others. So the trick is to set a debugger breakpoint in the MATPOWER

Re: Islanded network with no generation and full dispatchable loads

2022-03-18 Thread Ray Daniel Zimmerman
A few things to keep in mind … 1. Every case needs a reference bus. For the OPF it serves only as the voltage angle reference. (For the power flow it serves as voltage angle reference and slack bus). 2. Unlike regular generators, dispatchable loads assume a constant power factor. Without a

Re: wrong Cf and Ct

2022-03-15 Thread Ray Daniel Zimmerman
While it is not impossible, I would be very surprised to discover that Cf and Ct (in makeYbus.m, I assume?) are incorrect, but if you can create a small example that demonstrates that they are incorrect, please file a bug report at https://github.com/MATPOWER/matpower/issues Thanks, Ray

Re: Influence of the loss zone

2022-03-15 Thread Ray Daniel Zimmerman
The ZONE column (col 11) in the bus matrix is included for compatibility with other formats such as IEEE CDF and PSS/E, but is not actually used anywhere by MATPOWER. Ray On Mar 10, 2022, at 3:05 AM, Patrick Hutter mailto:patrick.hut...@unileoben.ac.at>> wrote: Hello! Can someone

Re: Fixing bus voltage of bus 33 with reactive power at bus 10 in radial system.

2022-03-02 Thread Ray Daniel Zimmerman
tbhu.ac.in<mailto:akhileshkb.rs.ee...@iitbhu.ac.in> Contact: +91-75001 86505 On Tue, Aug 10, 2021 at 8:54 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: You need to free the bus voltage at bus 10 and the active power at the slack bus. Try the attached version … Ray On Aug 10, 2

Re: Does OPF have concept of PV bus?

2022-02-24 Thread Ray Daniel Zimmerman
The concept of a PV bus comes from the power flow problem where the buses are partitioned into different types depending on which quantities are considered as given inputs vs solved outputs. In that sense the OPF does not have such a classification of buses. However, since since lower and upper

Re: Non Fixed Reserve

2022-02-22 Thread Ray Daniel Zimmerman
Certainly. Simply define a contingency that scales PMAX on your solar units by 0.8. Ray > On Feb 20, 2022, at 5:11 PM, MARCIAL GONZALEZ DE ARMAS > <100373...@alumnos.uc3m.es> wrote: > > Dear all, > > I am working with the MATPOWER Optimal Scheduling Tool (MOST). When adjusting > the

Re: How to add binary constraint

2022-02-22 Thread Ray Daniel Zimmerman
on you can provide, but I'm working on AC network model so I need to make some modifications. Best regards, Ahmad On Wed, 16 Feb 2022 at 21:57, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: Two quick comments … 1. Depending on the costs (and other constraints) involved, you

Re: How to add binary constraint

2022-02-16 Thread Ray Daniel Zimmerman
mathematical expression that I want to add to the cost function: The sum of 'ud' and 'uc' must be 1 or 0 and 'a' is the cost for each state. But it seems that I need to dig into the program further. I will try your suggestion Dr. Ray. Thank you. Best regards, Ahmad On Wed, 16 Feb 2022 at 00:02

Re: How to add binary constraint

2022-02-15 Thread Ray Daniel Zimmerman
If I understand your example, it is not the constraint that is binary (that is a normal linear constraint), but rather the variables P1 and P2 are binary variables. This requires a solver that can handle mixed integer problems. MOST does use integer variables for unit commitment, but I have not

Re: makePTDF with Slack-matrix

2022-02-11 Thread Ray Daniel Zimmerman
, [], txfr); Ray On Feb 11, 2022, at 1:26 PM, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: First of all, thank you for your carefully written and detailed report. The bottom line is … you’re right. This looks like a classic example of the aphorism “if you didn’t test it, it d

Re: makePTDF with Slack-matrix

2022-02-11 Thread Ray Daniel Zimmerman
First of all, thank you for your carefully written and detailed report. The bottom line is … you’re right. This looks like a classic example of the aphorism “if you didn’t test it, it doesn’t work”. This undocumented* feature was never covered in the test suite, so this bug has been there

Re: install/access MATPOWER directly from Python

2022-01-31 Thread Ray Daniel Zimmerman
though, Muhammad has done a much better job of this that I was able. It could be very useful for testing Python libraries against results from MATPOWER: https://github.com/cuihantao/andes/pull/10 Richard On Thu, 27 Jan 2022 at 22:43, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote:

Re: install/access MATPOWER directly from Python

2022-01-31 Thread Ray Daniel Zimmerman
Or better yet … create a new issue here<https://github.com/yasirroni/matpower-pip/issues>. Ray On Jan 31, 2022, at 10:02 AM, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: I’m not a real Python user, so I’m afraid I’m not familiar with anaconda or what is meant

Re: install/access MATPOWER directly from Python

2022-01-31 Thread Ray Daniel Zimmerman
at 7:59 PM, swagata mukherjee mailto:swammukher...@gmail.com>> wrote: Hi, Can I get a link for anaconda download. Regards, Swagata On Fri, Jan 28, 2022 at 3:13 AM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: Just wanted to let you all know about a package by Muhammad Yasi

install/access MATPOWER directly from Python

2022-01-27 Thread Ray Daniel Zimmerman
Just wanted to let you all know about a package by Muhammad Yasirroni, called matpower-pip that lets you install and access MATPOWER directly from Python. Check it out at: https://github.com/yasirroni/matpower-pip/ Ray

Re: How to use "get_soln"

2022-01-26 Thread Ray Daniel Zimmerman
Hi Ahmad, The documentation for the get_soln() method is found in Section 5.5.5 of the MP-Opt-Model User’s Manual (v3.0 for MATPOWER 7.1, but

Re: Removing a bus with its branch

2022-01-13 Thread Ray Daniel Zimmerman
t from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows From: Ray Daniel Zimmerman<mailto:r...@cornell.edu> Sent: Thursday, January 13, 2022 10:36 PM To: MATPOWER-L<mailto:matpowe...@list.cornell.edu> Subject: Re: Removing a bus with its branch Oops, looks lik

Re: Question on Branch Flows

2022-01-13 Thread Ray Daniel Zimmerman
Using the magnitude of the complex flow or it’s square is equivalent. Using the square avoids calling a square root function, so may be marginally more efficient. I’m pretty sure that was why we used the square. Note for those who care, using the squared flow in the constraint does require

Re: Removing a bus with its branch

2022-01-13 Thread Ray Daniel Zimmerman
pf(mpc,opt); end F1=results.branch(:,PF); F1=abs(F1); ss=sum(F1); fprintf('%d \n',ss) z(x) = double(ss) end display(z) Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows From: Ray Daniel Zimmerman<mailto:r...@cornell.edu> Sent: Tuesday

Re: Running Power flow with Voltage dependent load model

2022-01-13 Thread Ray Daniel Zimmerman
With MATPOWER 7 and earlier, unfortunately, there isn’t a really clean way to accomplish this. The way that comes to mind is to represent each load with a “fake” generator, and then add some user-defined nonlinear constraints (as described in Section 7.1.2 in the User’s Manual) that define the

Re: State estimation problems in newer Matlab/ MATPOWER versions

2022-01-13 Thread Ray Daniel Zimmerman
version compared to the older ones? In what way do they improve the MATPOWER? Thank you once again. --- ​ Themistoklis C. Xygkis, Dr Electr. & Comp. Eng. NTUA Automation Systems MSc Στις 2022-01-08 00:25, Ray Daniel Zimmerman έγραψε: You will definitely encounter problems if trying to use SE code

Re: State estimation problems in newer Matlab/ MATPOWER versions

2022-01-07 Thread Ray Daniel Zimmerman
You will definitely encounter problems if trying to use SE code from before MATPOWER 7 with MATPOWER 7 or later … or vice-versa, since there was an incompatible change introduced in v7 to the dSbus_dV() function called in doSE() (order of output args was swapped). In general, you want to make

battery questions

2022-01-06 Thread Ray Daniel Zimmerman
Hi Kinza, In the future, please put your question in the body of the message, not the subject. The storage model in MOST, as you know, is rather complex, so let me make sure I know what you are asking. When you say you want to know the cost of charging and discharging, are you referring to

Re: Analyzing feasibility of a system

2022-01-06 Thread Ray Daniel Zimmerman
Aldik mailto:aal...@ryerson.ca>> Date: Wed, Dec 15, 2021 at 10:16 AM Subject: Re: Analyzing feasibility of a system To: MATPOWER discussion forum mailto:matpowe...@list.cornell.edu>> Thank you Dr.Zimmerman. I appreciate that. Regards Abd On Tue, Dec 14, 2021 at 10:14 AM Ray Daniel Z

Re: Question about Matpower Modification

2021-12-14 Thread Ray Daniel Zimmerman
f Technology On Mon, 13 Dec 2021 at 22:37, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: In order to help, we’ll need more information. Such as, what is the form of the additions you are making to the MATPOWER formulation? New variables? Linear and/or nonlinear constraints? New cost

Re: Analyzing feasibility of a system

2021-12-14 Thread Ray Daniel Zimmerman
r your answer Dr.Zimmerman. Does this function have the ability to apply the soft limits only on the apparent power flow limit constraints? Or does it apply all soft limits on all constraints? Regards On Mon, Dec 13, 2021 at 10:43 AM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: I wo

Re: IPOPT Installation for Matpower-use

2021-12-14 Thread Ray Daniel Zimmerman
in Matpower? Ahmad Bariq Al Fahri Department of Electrical Engineering Sepuluh Nopember Institute of Technology LinkedIn<https://www.linkedin.com/in/alfahri/> On Mon, 13 Dec 2021 at 22:47, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: If you are on Windows the easiest way t

Re: IPOPT Installation for Matpower-use

2021-12-13 Thread Ray Daniel Zimmerman
If you are on Windows the easiest way to get IPOPT (and several other solvers) pre-built is to install the Opti Toolbox. I know it’s no longer being developed, but it still worked for me last time I checked. Ray On Dec 12, 2021, at 9:18 PM, Ahmad

Re: Analyzing feasibility of a system

2021-12-13 Thread Ray Daniel Zimmerman
I would probably use MATPOWER’s OPF soft limit capability to see which constraints are violated. mpopt = mpoption(); mpc = loadcase(); mpc = toggle_softlims(mpc, 'on'); r = runopf(mpc, mpopt); See Section 7.6.4 in the MATPOWER User’s Manual

Re: Question about Matpower Modification

2021-12-13 Thread Ray Daniel Zimmerman
In order to help, we’ll need more information. Such as, what is the form of the additions you are making to the MATPOWER formulation? New variables? Linear and/or nonlinear constraints? New costs? And how are you trying to do the modifications? But first, let me strongly suggest using the

Re: current of branch for DC power flow

2021-12-09 Thread Ray Daniel Zimmerman
MATPOWER does not include a function for computing the current from the branch power injections, but you can always get the complex current from the complex power and voltage. I = (S / V)* With the assumptions of the DC power flow (|V| ≈ 1, angle ≈ 0, Q negligible), the current is

Re: Removing a bus with its branch

2021-12-06 Thread Ray Daniel Zimmerman
nected to a bus and mention them to remove a bus is quite tidious job. If is thier any process in matpower to directly remove a bus along with its branches then it can help me atleast. On 6 Dec 2021 21:07, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: You’ve got the right idea. You ca

Re: Removing a bus with its branch

2021-12-06 Thread Ray Daniel Zimmerman
You’ve got the right idea. You can simply set the branch status to 0 and then use find_islands() and to find the isolated buses and set their BUS_TYPE to NONE (4). You may then be left with multiple islands, also found via find_islands() or extract_islands(). To solve a power flow, each island

Re: High branch R/X ratio in MATPOWER cases

2021-11-29 Thread Ray Daniel Zimmerman
I’m afraid I don’t have any details on how these particular parameters were calculated, but I would not be surprised if any physically unrealistic values arise from equivalencing. I think there may be some negative resistances in some of the cases as well, which I’m pretty sure comes from

Re: Matpower with radial distribution system

2021-11-29 Thread Ray Daniel Zimmerman
Actually, to run a load flow you’d use runpf(), not opf(). Also, for an OPF, it’s preferable to use runopf(). Ray On Nov 28, 2021, at 3:21 AM, sebaa haddi mailto:sebaa...@yahoo.fr>> wrote: It is too easy to run MATPOWER load flow codes. Example: run case14.m 1) download matpower software

Re: Matpower with radial distribution system

2021-11-29 Thread Ray Daniel Zimmerman
Yes. It even has some power flow algorithms that apply specifically to radial systems (see Section 4.3 in the MATPOWER User’s Manual). Ray On Nov 27, 2021, at 3:42 PM, Abdussemi'i Abuali mailto:propeace...@gmail.com>> wrote: Good day

Re: Joint energy and Reserve market

2021-11-18 Thread Ray Daniel Zimmerman
First, if you are using runopf_w_res(), you are solving a deterministic problem … i.e. you must specify a capacity (PMAX) for your RES units that is/will be available with certainty. If this is not what you want, maybe you want to look into the stochastic approach taken by MOST, which is by

Re: question about ORPD

2021-11-02 Thread Ray Daniel Zimmerman
Run an OPF with the active power constrained to their set points (PMIN=PMAX=desired PG) on all but the slack bus. This will minimize the slack bus generator cost, which minimizes the slack bus generation, i.e. minimizes system losses, all by optimizing the reactive power generation and voltage

Re: Why is objective function in negative

2021-11-02 Thread Ray Daniel Zimmerman
Hi Maliha, When using dispatchable loads, the objective function value includes a large “negative cost” to represent the value of serving the dispatchable load. If all load is dispatchable, you could think of the objective function value as the negative of the social welfare. If you want to

Re: question about OPF

2021-10-25 Thread Ray Daniel Zimmerman
MATPOWER does not currently implement a multi-period AC OPF, but if DC OPF is adequate, this is handled by MOST. See Example 5 in Section 7.2.1 in the MOST User’s Manual and

Re: Parsing Cases Data Not in p.u. or MV/MVAr

2021-10-25 Thread Ray Daniel Zimmerman
Hi Jeffrey, Great questions. First a bit of background … if I recall, the reason for specifying some cases in these non-standard ways was that some of the original sources for these cases specified the data in this form, so it was easier to compare the case file with data from the original

Re: question about smartmarket

2021-10-20 Thread Ray Daniel Zimmerman
There are no bids associated with fixed loads. A bid is essentially a specification of how a load is to be dispatched relative to price. And a fixed load is by definition, not dispatchable at all, so specifying a bid would be meaningless. Ray On Oct 20, 2021, at 4:22 AM, 2254878263

Re: question about smartmarket

2021-10-19 Thread Ray Daniel Zimmerman
Each offer corresponds to a generator and each bid corresponds to a dispatchable load in the underlying power grid. So, if you want to change the number of schedulable loads, you will have to add dispatchable loads as new rows in the gen matrix in the case file as well as adding rows to the bid

Re: Stochastic optimal scheduling of Solar PV (in most)

2021-10-15 Thread Ray Daniel Zimmerman
etprofiles for solar, wind and load consecutively. maliha. From: bounce-125957402-89272...@list.cornell.edu<mailto:bounce-125957402-89272...@list.cornell.edu> mailto:bounce-125957402-89272...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman ma

Re: How to edit objective function in most

2021-10-15 Thread Ray Daniel Zimmerman
utlook for Android<https://aka.ms/AAb9ysg> From: bounce-125997458-89272...@list.cornell.edu<mailto:bounce-125997458-89272...@list.cornell.edu> mailto:bounce-125997458-89272...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@corn

Re: Online grid plotter link for Matpower data

2021-10-15 Thread Ray Daniel Zimmerman
You may want to have a look at the plot_mpc() function in the extras directory. It may do what you want. It is contributed code, so I’m not too familiar with it. And of course, if you are looking for simple plots you can always use MATLAB’s built-in plotting functions to plot quantities from

Re: How to edit objective function in most

2021-10-13 Thread Ray Daniel Zimmerman
No need to edit the code, just set the appropriate cost parameters to zero. If I remember correctly, most of them should be zero by default, if not defined. Ray > On Oct 13, 2021, at 3:58 AM, MALIHA SHAH > wrote: > > Respected Ray, > > As tge objective function is explained in most

Re: Stochastic optimal scheduling of Solar PV (in most)

2021-09-30 Thread Ray Daniel Zimmerman
Yes. You can use exactly the same mechanism, including the unmodified addwind function to handle solar PV, or any other stochastic generation source, for that matter. If you like, you could even make a copy of the addwind.m function and call it addsolar.m and change “wind” to “solar”

Re: How to load Pd in a loadprofile ,when load buses are approximately 30 .

2021-09-30 Thread Ray Daniel Zimmerman
s/AAb9ysg> From: bounce-125927883-89272...@list.cornell.edu<mailto:bounce-125927883-89272...@list.cornell.edu> mailto:bounce-125927883-89272...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@cornell.edu>> Sent: Monday, September 20,

Re: Convergence issue in islanded multi Microgrid

2021-09-30 Thread Ray Daniel Zimmerman
For convergence, all islands will need exactly one reference bus, along with adequate generation to meet any non-curtailable load. Any isolated buses, or buses in islands that do not meet this criteria, need to have their type set to NONE (4). Ray On Sep 28, 2021, at 11:11 PM, ritu jain

Re: DC power flow considering resistive losses

2021-09-23 Thread Ray Daniel Zimmerman
As you mention, MATPOWER does not currently include consideration of losses in the DC power flow or DC OPF. You could estimate the losses manually after the fact based on the resistances and the lines flows that result from the lossless DC power flow. It would even be possible to run something

Re: How to change storage pcap power capicity in most ?

2021-09-23 Thread Ray Daniel Zimmerman
If you are using ex_storage.m to set up your storage unit(s), you can simply change the ecap and pcap values at the top of the file to set the energy and power capacity of the storage, respectively. Ray On Sep 20, 2021, at 10:52 AM, MALIHA SHAH mailto:mshaheep19@student.nust.edu.pk>>

Re: How to load Pd in a loadprofile ,when load buses are approximately 30 .

2021-09-20 Thread Ray Daniel Zimmerman
891536-89272...@list.cornell.edu<mailto:bounce-125891536-89272...@list.cornell.edu> mailto:bounce-125891536-89272...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@cornell.edu>> Sent: Tuesday, 7 September 2021 1:32 AM To: MATPOWER-L mailto:matpowe...@list.cornel

Re: Data Source of print PG scenario on MOST

2021-09-20 Thread Ray Daniel Zimmerman
Hi Raka, As described in Section 5.1 of the MOST Users’s Manual, the input data for MOST are assembled from several sources into a single input struct mdi by the loadmd() function. The various pieces are the MATPOWER case data for the base case,

Re: How to load Pd in a loadprofile ,when load buses are approximately 30 .

2021-09-06 Thread Ray Daniel Zimmerman
; 0.35 0.95 1.55; From: bounce-125771441-89272...@list.cornell.edu<mailto:bounce-125771441-89272...@list.cornell.edu> mailto:bounce-125771441-89272...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@cornell.edu>> Sent: Thursday, 1

Re: How to calculate power flow of ac-dc hybrid distribution network?

2021-08-27 Thread Ray Daniel Zimmerman
You may want to check out the MATPOWER-FUBM fork of MATPOWER by Abraham Alvarez-Bustos. It has some AC-DC hybrid capabilities. I suggest you contact him directly about specifics. Ray On Aug 26, 2021, at 9:20 PM,

Re: How to model constraints of photovoltaic power generators in mpc.gen?

2021-08-24 Thread Ray Daniel Zimmerman
still in use today? Thank you. At 2021-08-24 22:18:49, "Ray Daniel Zimmerman" mailto:r...@cornell.edu>> wrote: Assuming you can model it as a linear relationship (e.g. a constant power factor), you could add this as a user-defined constraint. See Section 7.1.2 in the m

Re: How to model constraints of photovoltaic power generators in mpc.gen?

2021-08-24 Thread Ray Daniel Zimmerman
Assuming you can model it as a linear relationship (e.g. a constant power factor), you could add this as a user-defined constraint. See Section 7.1.2 in the manual for more details. Ray On Aug 23, 2021, at 9:03 PM, hhuw...@163.com wrote: Hi all, I'm using Matpower

Re: Where Can I Get Data Source "Loss" in OPF 30 Bus?

2021-08-11 Thread Ray Daniel Zimmerman
The branch losses are not stored in the output data structure, but they can be computed easily using the get_losses() function. Ray On Aug 10, 2021, at 8:55 PM, RAKA MAULANA RAHARJO mailto:rakamaulan...@mail.ugm.ac.id>> wrote:

Re: Fixing bus voltage of bus 33 with reactive power at bus 10 in radial system.

2021-08-10 Thread Ray Daniel Zimmerman
You need to free the bus voltage at bus 10 and the active power at the slack bus. Try the attached version … Ray On Aug 10, 2021, at 5:31 AM, akhil mailto:akhil...@gmail.com>> wrote: Hi MATPOWER users, 1. I am trying to keep the bus voltage of bus 33 to fix at 0.94, without

Re: Power losses using MOST

2021-08-09 Thread Ray Daniel Zimmerman
t; El lun, 9 ago 2021 a las 11:18, Ray Daniel Zimmerman (mailto:r...@cornell.edu>>) escribió: MOST uses a lossless DC network model for the optimization, but you could use the branch flows from the solution to compute an approximation of the losses in each branch. MATPOWER does no

Re: Branches and transformer model

2021-08-09 Thread Ray Daniel Zimmerman
Yes, in the current MATPOWER case format v2, the transformers are specified in the same branch matrix as the AC transmission lines. I’m a bit rusty on my transformer modeling, so someone please correct me if I’m wrong, but I believe the % impedance specification is equivalent to the p.u.

Re: Power losses using MOST

2021-08-09 Thread Ray Daniel Zimmerman
MOST uses a lossless DC network model for the optimization, but you could use the branch flows from the solution to compute an approximation of the losses in each branch. MATPOWER does not include the code to do this however, so you’d have to write your own function. Ray On Aug 3, 2021,

Re: tarsformers in mpc.branch

2021-08-09 Thread Ray Daniel Zimmerman
I am not aware of any. Ray > On Jul 26, 2021, at 4:12 AM, Simone Fratton wrote: > > Can anyone tell me if there are already matlab scripts or fanctions that > allow you to create Matpower cases starting from standard data? Specifically > those for the transformer? If so where are they?

Re: Ybus Construction: Parallel Branch Modelling for Power Flow

2021-07-20 Thread Ray Daniel Zimmerman
It is perfectly fine to replace parallel branches with a single equivalent branch. If done properly, it will result in an identical power flow solution. Ray On Jul 16, 2021, at 1:22 PM, Liang Chen mailto:liangjie.c...@mail.utoronto.ca>> wrote: Dear all, I have a question regarding the

Re: How to load Pd in a loadprofile ,when load buses are approximately 30 .

2021-07-14 Thread Ray Daniel Zimmerman
755821-89272...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@cornell.edu>> Sent: Thursday, 8 July 2021 7:54 PM To: MATPOWER-L mailto:matpowe...@list.cornell.edu>> Subject: Re: How to load Pd in a loadprofile ,when load buses are approximately 30 . Unfortunately, setting up t

Re: How to load Pd in a loadprofile ,when load buses are approximately 30 .

2021-07-08 Thread Ray Daniel Zimmerman
r time. Maliha Shah From: bounce-125732211-89272...@list.cornell.edu<mailto:bounce-125732211-89272...@list.cornell.edu> mailto:bounce-125732211-89272...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@cornell.edu>> Sent: Thursda

Re: Line losses question

2021-07-05 Thread Ray Daniel Zimmerman
The branch model in the current version of MATPOWER does not include shunt conductance, only shunt capacitance. I’m afraid with the current models, you would have to enter any shunt conductances directly at the “from” and “to” buses (column GS in the bus matrix) and then add in those losses

Re: voltage magnitude limits control in power flow

2021-06-30 Thread Ray Daniel Zimmerman
If you only need to control the voltage at generator buses, then you can do it simply via the generator voltage setpoint in mpc.gen(:, VG). Otherwise, you can always use an appropriately constrained OPF to solve the power flow problem. Ray On Jun 29, 2021, at 10:07 PM, J C

Re: my power flow data is not converge by NR method

2021-06-30 Thread Ray Daniel Zimmerman
Have you tried the things mentioned in FAQ #5? Ray On Jun 29, 2021, at 8:43 PM, Ari N mailto:ari.nrar...@gmail.com>> wrote: hello everyone, I need help. Can you check my power flow data?. The data on the attachment file. many thanks

<    1   2   3   4   >