Category: News
I need to code a pipe network and solve for flow rates and ideal pump head. I have the basis of a code using fsolve with my equations and unkowns, but keep exceeding iteration
function Mary_H_Kennedy_Fluids_Project
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Pipe Flow Project
% Mary Helen Kennedy
% ME 3834 — Fluid Mechanics
% Spring 2024
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Q1 = 4.456; %ft3/s
v1 = 22.69; %ft/s
L = 100; %ft
D = 0.5; %ft
e = 0.00085; %ft
rho = 62; %lbm/ft^3
f = 0.0023; %Initial guess
mu = 2.05*10^-5;
Re = (rho*v1*D)/mu;
A = 0.196;
% Define the function
fun = @(F) [
(F(2)/(rho*9.81)) – (F(1)) + ((v1^2)/(2*9.81)*(f*(L/D)-1)); % Equation for Pipe 1
F(2) – (rho*9.81)*(f*(L/D)*(F(5)^2)/(2*9.81*A^2)); % Equation for Pipe 2
F(2) – (rho*9.81)*(f*(L/D)*(F(5)^2)/(2*9.81*A^2)); % Equation for Pipe 3
(F(2) – F(4)) – (rho*9.81)*(f*(L/D)*(F(6)^2)/(2*9.81*A^2)); % Equation for Pipe 4
F(4) – (rho*9.81)*(f*(L/D)*(F(7)^2)/(2*9.81*A^2)); % Equation for Pipe 5
F(4) – (rho*9.81)*(f*(L/D)*(F(8)^2)/(2*9.81*A^2)); % Equation for Pipe 6
F(5) + F(5) + F(6) – Q1; % Node A
F(6) – F(7) – F(8); % Node B
];
% Initial guess for unknowns
x0 = [2000, 500, 0.0023, 400, 24, 25, 26, 27];
% Call fsolve to solve the system of equations
options = optimoptions(‘fsolve’,’MaxFunctionEvaluations’,10000); % Adjust the maximum number of function evaluations
% Call fsolve with options
F = fsolve(fun, x0, options);
% Unknowns from fsolve
hl = F(1);
Pa = F(2);
f = F(3);
Pb = F(4);
Q3 = F(5);
Q4 = F(6);
Q5 = F(7);
Q6 = F(8);
endfunction Mary_H_Kennedy_Fluids_Project
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Pipe Flow Project
% Mary Helen Kennedy
% ME 3834 — Fluid Mechanics
% Spring 2024
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Q1 = 4.456; %ft3/s
v1 = 22.69; %ft/s
L = 100; %ft
D = 0.5; %ft
e = 0.00085; %ft
rho = 62; %lbm/ft^3
f = 0.0023; %Initial guess
mu = 2.05*10^-5;
Re = (rho*v1*D)/mu;
A = 0.196;
% Define the function
fun = @(F) [
(F(2)/(rho*9.81)) – (F(1)) + ((v1^2)/(2*9.81)*(f*(L/D)-1)); % Equation for Pipe 1
F(2) – (rho*9.81)*(f*(L/D)*(F(5)^2)/(2*9.81*A^2)); % Equation for Pipe 2
F(2) – (rho*9.81)*(f*(L/D)*(F(5)^2)/(2*9.81*A^2)); % Equation for Pipe 3
(F(2) – F(4)) – (rho*9.81)*(f*(L/D)*(F(6)^2)/(2*9.81*A^2)); % Equation for Pipe 4
F(4) – (rho*9.81)*(f*(L/D)*(F(7)^2)/(2*9.81*A^2)); % Equation for Pipe 5
F(4) – (rho*9.81)*(f*(L/D)*(F(8)^2)/(2*9.81*A^2)); % Equation for Pipe 6
F(5) + F(5) + F(6) – Q1; % Node A
F(6) – F(7) – F(8); % Node B
];
% Initial guess for unknowns
x0 = [2000, 500, 0.0023, 400, 24, 25, 26, 27];
% Call fsolve to solve the system of equations
options = optimoptions(‘fsolve’,’MaxFunctionEvaluations’,10000); % Adjust the maximum number of function evaluations
% Call fsolve with options
F = fsolve(fun, x0, options);
% Unknowns from fsolve
hl = F(1);
Pa = F(2);
f = F(3);
Pb = F(4);
Q3 = F(5);
Q4 = F(6);
Q5 = F(7);
Q6 = F(8);
end function Mary_H_Kennedy_Fluids_Project
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Pipe Flow Project
% Mary Helen Kennedy
% ME 3834 — Fluid Mechanics
% Spring 2024
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Q1 = 4.456; %ft3/s
v1 = 22.69; %ft/s
L = 100; %ft
D = 0.5; %ft
e = 0.00085; %ft
rho = 62; %lbm/ft^3
f = 0.0023; %Initial guess
mu = 2.05*10^-5;
Re = (rho*v1*D)/mu;
A = 0.196;
% Define the function
fun = @(F) [
(F(2)/(rho*9.81)) – (F(1)) + ((v1^2)/(2*9.81)*(f*(L/D)-1)); % Equation for Pipe 1
F(2) – (rho*9.81)*(f*(L/D)*(F(5)^2)/(2*9.81*A^2)); % Equation for Pipe 2
F(2) – (rho*9.81)*(f*(L/D)*(F(5)^2)/(2*9.81*A^2)); % Equation for Pipe 3
(F(2) – F(4)) – (rho*9.81)*(f*(L/D)*(F(6)^2)/(2*9.81*A^2)); % Equation for Pipe 4
F(4) – (rho*9.81)*(f*(L/D)*(F(7)^2)/(2*9.81*A^2)); % Equation for Pipe 5
F(4) – (rho*9.81)*(f*(L/D)*(F(8)^2)/(2*9.81*A^2)); % Equation for Pipe 6
F(5) + F(5) + F(6) – Q1; % Node A
F(6) – F(7) – F(8); % Node B
];
% Initial guess for unknowns
x0 = [2000, 500, 0.0023, 400, 24, 25, 26, 27];
% Call fsolve to solve the system of equations
options = optimoptions(‘fsolve’,’MaxFunctionEvaluations’,10000); % Adjust the maximum number of function evaluations
% Call fsolve with options
F = fsolve(fun, x0, options);
% Unknowns from fsolve
hl = F(1);
Pa = F(2);
f = F(3);
Pb = F(4);
Q3 = F(5);
Q4 = F(6);
Q5 = F(7);
Q6 = F(8);
end fsolve, fluids, help, iterations MATLAB Answers — New Questions
Find a smaller matrix within a larger matrix
I have two matrices with different sizes and I need to find the lower matrix inside the higher matrix.
Example
– Lower Matrix (Unique [1×7])
[ 2 3 4 5 6 7]
– Higher Matrix (Several results [1000×15])
[ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16] OK
[ 2 3 4 5 6 7 10 12 13 15 16 19 20 22 23] OK
[ 2 3 4 6 7 8 9 10 11 12 13 14 15 16 17] NOK
. . .
If the 7 numbers from lower matrix matches inside some row from 15 numbers higher matrix, store the result from higher matrix.
It should analyze each row from higher matrix.I have two matrices with different sizes and I need to find the lower matrix inside the higher matrix.
Example
– Lower Matrix (Unique [1×7])
[ 2 3 4 5 6 7]
– Higher Matrix (Several results [1000×15])
[ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16] OK
[ 2 3 4 5 6 7 10 12 13 15 16 19 20 22 23] OK
[ 2 3 4 6 7 8 9 10 11 12 13 14 15 16 17] NOK
. . .
If the 7 numbers from lower matrix matches inside some row from 15 numbers higher matrix, store the result from higher matrix.
It should analyze each row from higher matrix. I have two matrices with different sizes and I need to find the lower matrix inside the higher matrix.
Example
– Lower Matrix (Unique [1×7])
[ 2 3 4 5 6 7]
– Higher Matrix (Several results [1000×15])
[ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16] OK
[ 2 3 4 5 6 7 10 12 13 15 16 19 20 22 23] OK
[ 2 3 4 6 7 8 9 10 11 12 13 14 15 16 17] NOK
. . .
If the 7 numbers from lower matrix matches inside some row from 15 numbers higher matrix, store the result from higher matrix.
It should analyze each row from higher matrix. contains, matrix array MATLAB Answers — New Questions
Where to report a Bug on Outlook web? // Problem with one time code
Hi, I have two mails, let’s call them A and B. Yesterday I changed the mail where the one time code are send on A. As I was receiving a lot of one time codes as someone was trying to access A account, I decided to change the mail where I was going to receive one time codes. I used an alias of B, lets call it B1, and deleted B as the mail to send one time codes. The intention was to keep safe B, as if they discover the mail where one time codes are send and try to log in in it, the alias(B1) is not used to log.
The problem is that since that moment, I can’t change configurations on A, or even login where the one time code is needed. When the screen that ask that information appears, it crash and the screen turns white. I supose that something was saved incorrectly on Microsoft database and for that reason when the screen is loading, it receives a null value and it crash.
Here I attach the pictures of the error I receive when I need a One time code on A account:
I what to ask if it will take to A some days to recognise the new mail to send one time codes (B1), or it is an error. If it takes some days I don’t have problem with wait, but if it is an error I would like to know where to report the bug.
I was about to configure a cell number to recieve the codes, but when I saw the screen, the configuration session was expired and the error started to happen (dumb of me ).
To sum up:
On A I added B1(an alias of B) as mail to receive one time codes, then I delete the previous configuration to receive one time codes that were B. Since then, when Outlook needs to ask A for a one time code, the web crashes with a white screen.
Thanks , it is an specific problem, but I would like to recover that A account, I don’t mind if the mail to receive one time codes it’s rolled back to the previous mail B or keeps the new B1.
Thanks again
Hi, I have two mails, let’s call them A and B. Yesterday I changed the mail where the one time code are send on A. As I was receiving a lot of one time codes as someone was trying to access A account, I decided to change the mail where I was going to receive one time codes. I used an alias of B, lets call it B1, and deleted B as the mail to send one time codes. The intention was to keep safe B, as if they discover the mail where one time codes are send and try to log in in it, the alias(B1) is not used to log. The problem is that since that moment, I can’t change configurations on A, or even login where the one time code is needed. When the screen that ask that information appears, it crash and the screen turns white. I supose that something was saved incorrectly on Microsoft database and for that reason when the screen is loading, it receives a null value and it crash. Here I attach the pictures of the error I receive when I need a One time code on A account: The screen turns white when it crashCrash message refering to one time code I what to ask if it will take to A some days to recognise the new mail to send one time codes (B1), or it is an error. If it takes some days I don’t have problem with wait, but if it is an error I would like to know where to report the bug.I was about to configure a cell number to recieve the codes, but when I saw the screen, the configuration session was expired and the error started to happen (dumb of me ).To sum up:On A I added B1(an alias of B) as mail to receive one time codes, then I delete the previous configuration to receive one time codes that were B. Since then, when Outlook needs to ask A for a one time code, the web crashes with a white screen. Thanks , it is an specific problem, but I would like to recover that A account, I don’t mind if the mail to receive one time codes it’s rolled back to the previous mail B or keeps the new B1. Thanks again Read More
Unable to Receive System-Generated Emails
Can anyone help me on this. We’re currently using Exchange Server 2013. We have issue where system-generated emails are not being received but we are able to receive emails from users email with the same domain name. TIA
Can anyone help me on this. We’re currently using Exchange Server 2013. We have issue where system-generated emails are not being received but we are able to receive emails from users email with the same domain name. TIA Read More
Celebrating MVPs in the Imagine Cup 2024
The Imagine Cup is a global student competition for visionary entrepreneurs building with AI – and empowers this next generation to use Azure and AI services to solve some of the most challenging local, industry and global challenges. Every year, students from across the globe compete for the honour of taking home the Imagine Cup, along with a cash prize of USD100,000 and mentorship session with Microsoft Chairman & CEO, Satya Nadella.
This year, the competition has been more challenging and exciting than ever, with new technologies and solutions being showcased across the Microsoft ecosystem including projects using Azure OpenAI Service, Azure Computer Vision & Azure Machine Learning.
The MVP community rallied behind this hallmark initiative, with more than 200 Microsoft Most Valuable Professionals (MVPs) & Regional Directors (RDs) involved in this year’s Imagine Cup. The involvement ranges from judging various stages of the competition to mentoring the student teams of contestants.
The top three teams that emerged from the semifinals, in alphabetical order are:
FROM YOUR EYES (Turkey), who developed a wearable device that uses computer vision and natural language processing to assist people who are visually impaired in their daily activities.
JRE (United Kingdom), who designed a drone-based solution that uses computer vision and machine learning to monitor and optimize the environmental impact of mining operations.
PlanRoadmap (United States), who created a web application that uses natural language generation and semantic search to help project managers plan and execute their projects more efficiently and effectively.
These teams impressed the judges with their innovative use of AI, inclusivity for end-users and viability of their startup. But they did not achieve this alone. They had the invaluable support and guidance of their MVP mentors.
As part of the Imagine Cup 2024, each of the startups in the semifinals were assigned an MVP mentor, who volunteered their time and expertise to help the students refine their solutions, prepare their pitches, and overcome any technical or business challenges they faced.
We reached out to the mentors for the top three teams and asked them to share their experiences and insights from working with the Imagine Cup teams. Here are some of the highlights:
Catalin Gheorghiu, mentor of FROM YOUR EYES
Catalin Gheorghiu, an Internet of Things & Microsoft Azure MVP from Romania, is a mentor for FROM YOUR EYES. Catalin has been working with Microsoft technologies as a software architect and developer for more than 20 years. He is interested in AI, IoT, and cloud computing, and often gives talks at conferences and meetups.
What do you enjoy most about being a mentor?
I enjoy the flood of new ideas and the enthusiasm in solving problems using new technologies. It always gives me a “rejuvenation” of technical thinking and provokes me to learn more and reminds me that I need to continue to work to remain on the technological edge. I would say that I get a lot from mentoring and hope that the students would say the same. Thank you From Your Eyes!
As a mentor, what strategies did you employ to guide your team in overcoming the challenges of developing an AI-driven solution for visually impaired users?
As strategies go, my job was simple. When talking about AI today, Microsoft covers all the bases and is the place to go, the biggest issue is to pick the right service from this offering. The students knew the problem firsthand and did well technically, choosing the right services etc. What was missing was explaining to the world what they were using in their material. The project is a testament of the strength of Microsoft’s AI offerings, and how it can enable a company to deliver quickly and efficiently a great AI solution to the market.
Charley Hanania, mentor of JRE
Charley Hanania, a Data Platform MVP from Switzerland, who coached JRE. Charley is an expert in business applications and AI and has worked with Microsoft technologies for over 25 years. He is the Principal Consultant at QS2 AG, a company focused on data platform consulting and data-based application development. He also speaks, writes, and mentors, helping startups and social entrepreneurs.
How did you become a mentor? What motivated you to take on this role?
The opportunity to mentor the student teams for the 2024 Imagine Cup presented itself in January, through one of the MVP newsletters and also via our Community Program Manager, Alice Piras. I’ve always been drawn to assisting students and young individuals, and mentoring both locally and globally has been a significant part of my community involvement over the years. I find the impact of these engagements to be extensive and enduring, influencing the paths and directions people choose to take in their lives. Even after many years, I continue to hear from those I’ve engaged with, keeping up with their journeys, triumphs, challenges, and future plans. It’s this ongoing connection that truly motivates me.
How did you help your team find inspiration for their project or what guidance did you provide for its evolution?
JRE already had a fantastic idea and concept! Initially, I reviewed their technical architecture and assisted them in identifying services and technologies that would not only enhance their offering but also future-proof the design.
We aimed to synergize with the review panel by leveraging key technologies within the Microsoft product and service ecosystem that would better align with their development. Drawing from my extensive experience working with startups, I guided them on key pitch areas, asking pointed questions about the perceived benefits to society and the industry they were targeting. I also provided presentation tips and guidance.
Fortunately, my consulting work has given me some experience in the Heavy Metals and Mining Industries, so their concept was not entirely foreign to me. This familiarity helped me develop ideas around message clarity and direction, particularly in explaining the concepts and benefits to panelists who may not be familiar with the industry.
Marcin Policht, mentor of PlanRoadmap
Marcin Policht, a Security MVP from the US, is the mentor for PlanRoadmap. Marcin has over 15 years of experience with Microsoft technologies. He is a cloud and datacenter management expert who writes books and articles to help professionals and organizations use the cloud effectively.
Could you share your experience in helping your team leverage Azure AI services in their project?
One of my goals was to help the team fully understand the capabilities of Azure AI services and Azure OpenAI, so they take advantage of the capabilities they offer. This included considerations around data privacy, security, scalability, and cost optimization. They are quick learners, as the final outcome demonstrates.
What strategies do you use to guide your mentees towards their goals?
Review with the team competition guidelines and criteria to ensure that the solution aligns with the judging criteria, highlight the importance of addressing all aspects of the competition, including the technologies in scope, social impact, innovation, commercial viability, inclusivity, equality, and privacy protection.
Encourage the team to identify pressing social issues or challenges that their Azure AI solution can address, research and discuss potential problems in areas such as social justice and accessibility.
Emphasize the importance of ethical considerations in AI development, review principles such as fairness, transparency, accountability, and privacy protection.
Prioritize the needs and experiences of end-users, emphasize the importance of inclusivity and accessibility in design.
Ensure a sustainable business model, including market opportunities and potential partnerships, help think strategically about how to create value for customers while achieving social impact.
Offer technical guidance and support to effectively leverage Azure AI services and OpenAI technologies, assist in selecting the right tools and platforms, designing scalable architectures, and implementing robust solutions.
Help prepare for pitching the solution to judges and stakeholders, including effective communication of ideas, highlighting the social impact and commercial viability of the solution, and address potential questions or concerns.
Who will take home the Imagine Cup? Catch the Finals on May 21
We applaud the top three teams of the Imagine Cup 2024 and appreciate all the MVP judges and mentors for their incredible work and commitment over the contest. We are proud of the MVP community and the impact they have on the future of technology, social impact and young visionaries.
Catch the startup finalists live at Microsoft Build on May 21 to find out who wins the Imagine Cup 2024.
Microsoft Tech Community – Latest Blogs –Read More
why is NaN not of ‘NaN type’ in Simulink?
Hi everyone,
Please, could anyone explain why the constant block NaN is not of type NaN?
Thank you in advance!
Best regards,
NicolasHi everyone,
Please, could anyone explain why the constant block NaN is not of type NaN?
Thank you in advance!
Best regards,
Nicolas Hi everyone,
Please, could anyone explain why the constant block NaN is not of type NaN?
Thank you in advance!
Best regards,
Nicolas simulink, nan MATLAB Answers — New Questions
How to use operations in for loop problems
For values of 1 to 60, create a for-loop that does the following. If the value is 1 to 20, have
the operation be number2, if the value is 21 to 40, have the operation be number, and if the
value is 41 to 60, have the operation be √number. Store all 60 results in 3 different variables
that start at 1. With the results, create a 3×20 matrix where the first row is the results of the
first operation, the second row being the results of the second operation, and the final row
being the results of the final operationFor values of 1 to 60, create a for-loop that does the following. If the value is 1 to 20, have
the operation be number2, if the value is 21 to 40, have the operation be number, and if the
value is 41 to 60, have the operation be √number. Store all 60 results in 3 different variables
that start at 1. With the results, create a 3×20 matrix where the first row is the results of the
first operation, the second row being the results of the second operation, and the final row
being the results of the final operation For values of 1 to 60, create a for-loop that does the following. If the value is 1 to 20, have
the operation be number2, if the value is 21 to 40, have the operation be number, and if the
value is 41 to 60, have the operation be √number. Store all 60 results in 3 different variables
that start at 1. With the results, create a 3×20 matrix where the first row is the results of the
first operation, the second row being the results of the second operation, and the final row
being the results of the final operation for loop, operations, matrix MATLAB Answers — New Questions
Designing Your Mesh Event: How to Create a Great Immersive Experience
Learn about key elements to planning your event, like how to decide between immersive view in Teams or the Mesh app, and how to accommodate the number of attendees you want to attend.
Get tips and tricks for creating and customizing events from environments and saving environment customizations as templates so you can recreate similar events in minutes.
When: May 7th at 9:00 AM PST | 18:00 CET
Speaker: Cathy Moya – Sr. Customer Experience PM
RSVP: https://developer.microsoft.com/en-us/reactor/events/22544/
Learn about key elements to planning your event, like how to decide between immersive view in Teams or the Mesh app, and how to accommodate the number of attendees you want to attend.
Get tips and tricks for creating and customizing events from environments and saving environment customizations as templates so you can recreate similar events in minutes.
When: May 7th at 9:00 AM PST | 18:00 CET
Speaker: Cathy Moya – Sr. Customer Experience PM
RSVP: https://developer.microsoft.com/en-us/reactor/events/22544/
Read More
“Add a row into a table” by power automate to excel but it changed the whole column
Hello guys.
I’m having problems where I used “Add a row into a table” function with formula “=COUNTIF(D:D, “*input number*”)”. It changed the whole column having the same value from the latest row updated by power automate.
this thing happen to whole column for every new data updated from power automate.
Hello guys. I’m having problems where I used “Add a row into a table” function with formula “=COUNTIF(D:D, “*input number*”)”. It changed the whole column having the same value from the latest row updated by power automate. this thing happen to whole column for every new data updated from power automate. Read More
colorbar label along y-axis instead of x-axis
Hello! I would like the colorbar label to appear directly underneath the colorbar (right underneath the "220" in the figure below), horizontal along the x axis. However, when I specify this as follows, it aligns the label along the y axis.
Here is the relevant code:
contourf(lon,lat,tmp2, 25, ‘LineStyle’,’none’);
hold on
colormap(‘turbo’)
set(gca,’fontsize’,14);
ylabel(‘Latitude (circ)’)
xlabel(‘Longitude (circ)’)
h = colorbar;
xlabel(h,'(K)’);
hold off
——
can someone help me change the orientation of that ‘(K)’, and show me how to adjust my code in general so I can make this adjustments in other plots as well? Thanks.Hello! I would like the colorbar label to appear directly underneath the colorbar (right underneath the "220" in the figure below), horizontal along the x axis. However, when I specify this as follows, it aligns the label along the y axis.
Here is the relevant code:
contourf(lon,lat,tmp2, 25, ‘LineStyle’,’none’);
hold on
colormap(‘turbo’)
set(gca,’fontsize’,14);
ylabel(‘Latitude (circ)’)
xlabel(‘Longitude (circ)’)
h = colorbar;
xlabel(h,'(K)’);
hold off
——
can someone help me change the orientation of that ‘(K)’, and show me how to adjust my code in general so I can make this adjustments in other plots as well? Thanks. Hello! I would like the colorbar label to appear directly underneath the colorbar (right underneath the "220" in the figure below), horizontal along the x axis. However, when I specify this as follows, it aligns the label along the y axis.
Here is the relevant code:
contourf(lon,lat,tmp2, 25, ‘LineStyle’,’none’);
hold on
colormap(‘turbo’)
set(gca,’fontsize’,14);
ylabel(‘Latitude (circ)’)
xlabel(‘Longitude (circ)’)
h = colorbar;
xlabel(h,'(K)’);
hold off
——
can someone help me change the orientation of that ‘(K)’, and show me how to adjust my code in general so I can make this adjustments in other plots as well? Thanks. xlabel colorbar, colorbar orientation, colorbar, ylabel colorbar MATLAB Answers — New Questions
MATLAB Web App does not load when it comes to hosting
Hi,
I have truoble loading my web app on my web app homepage.
Other open-source web app example (mortgage calculator) does work well on the web app server,
but the one that I made on web app homepage does not finish loading, after I clicked on homepage.
Does anyone know some possible causes of this infinite loading error?
Thank you for reading.Hi,
I have truoble loading my web app on my web app homepage.
Other open-source web app example (mortgage calculator) does work well on the web app server,
but the one that I made on web app homepage does not finish loading, after I clicked on homepage.
Does anyone know some possible causes of this infinite loading error?
Thank you for reading. Hi,
I have truoble loading my web app on my web app homepage.
Other open-source web app example (mortgage calculator) does work well on the web app server,
but the one that I made on web app homepage does not finish loading, after I clicked on homepage.
Does anyone know some possible causes of this infinite loading error?
Thank you for reading. web app, web app load, web app host MATLAB Answers — New Questions
Can you load a WAVES VST plugin with Audio Toolbox?
I’m trying to load a VST3 plugin from WAVES using loadAudioPlugin() from MATLAB Audio Toolbox but I get the following error (in comments):
loadAudioPlugin(‘/Library/Audio/Plug-Ins/VST3/WaveShell1-VST3 14.17.vst3’)
% Unexpected unknown exception from MEX file..
% Error in hostmexif.newplugininstance
%
% Error in loadAudioPlugin
This seems to be due to Waves using WaveShell as a software gateway to the actual VST plugin — see https://www.waves.com/support/how-to-use-waves-plugins-when-using-custom-vst-folder
Anyone had any success loading a Waves VST3 plugin into MATLAB?I’m trying to load a VST3 plugin from WAVES using loadAudioPlugin() from MATLAB Audio Toolbox but I get the following error (in comments):
loadAudioPlugin(‘/Library/Audio/Plug-Ins/VST3/WaveShell1-VST3 14.17.vst3’)
% Unexpected unknown exception from MEX file..
% Error in hostmexif.newplugininstance
%
% Error in loadAudioPlugin
This seems to be due to Waves using WaveShell as a software gateway to the actual VST plugin — see https://www.waves.com/support/how-to-use-waves-plugins-when-using-custom-vst-folder
Anyone had any success loading a Waves VST3 plugin into MATLAB? I’m trying to load a VST3 plugin from WAVES using loadAudioPlugin() from MATLAB Audio Toolbox but I get the following error (in comments):
loadAudioPlugin(‘/Library/Audio/Plug-Ins/VST3/WaveShell1-VST3 14.17.vst3’)
% Unexpected unknown exception from MEX file..
% Error in hostmexif.newplugininstance
%
% Error in loadAudioPlugin
This seems to be due to Waves using WaveShell as a software gateway to the actual VST plugin — see https://www.waves.com/support/how-to-use-waves-plugins-when-using-custom-vst-folder
Anyone had any success loading a Waves VST3 plugin into MATLAB? waves, audio toolbox, vst plugin MATLAB Answers — New Questions
Find Eigenvalues of ODE45 Solution MATLAB
I have the following non-linear ODE:
I have the following ODE45 solution:
fun = @(t,X)odefun(X,K,C,M,F(t),resSize);
[t_ode,X_answer] = ode45(fun,tspan,X_0);
The input matrices are stiffness K(X), damping C, mass M, and force F. resSize is the total number of masses in the system.
I would like to find the system’s eigenvalues using either the Jacobian matrix, transfer function, or any other viable method.
I have tried using:
[vector,lambda,condition_number] = polyeig(K(X_answer),C,M);
This is tricky since my K matrix is a function handle of X. In other words, K=@(X). X represents a displacement vector of each mass in the system (x_1(t),x_2(t),…x_resSize(t)), where resSize is the total number of masses. My X_answer matrix is a double with dimensions of t_ode by resSize, where each row is the displacement vector of each mass in double form. Is there some way to substitute X_answer into my function handle for K so I can use polyeig()? If not, how would I go about finding my system’s transfer function or Jacobian matrix so that I can find it’s eigenvalues?I have the following non-linear ODE:
I have the following ODE45 solution:
fun = @(t,X)odefun(X,K,C,M,F(t),resSize);
[t_ode,X_answer] = ode45(fun,tspan,X_0);
The input matrices are stiffness K(X), damping C, mass M, and force F. resSize is the total number of masses in the system.
I would like to find the system’s eigenvalues using either the Jacobian matrix, transfer function, or any other viable method.
I have tried using:
[vector,lambda,condition_number] = polyeig(K(X_answer),C,M);
This is tricky since my K matrix is a function handle of X. In other words, K=@(X). X represents a displacement vector of each mass in the system (x_1(t),x_2(t),…x_resSize(t)), where resSize is the total number of masses. My X_answer matrix is a double with dimensions of t_ode by resSize, where each row is the displacement vector of each mass in double form. Is there some way to substitute X_answer into my function handle for K so I can use polyeig()? If not, how would I go about finding my system’s transfer function or Jacobian matrix so that I can find it’s eigenvalues? I have the following non-linear ODE:
I have the following ODE45 solution:
fun = @(t,X)odefun(X,K,C,M,F(t),resSize);
[t_ode,X_answer] = ode45(fun,tspan,X_0);
The input matrices are stiffness K(X), damping C, mass M, and force F. resSize is the total number of masses in the system.
I would like to find the system’s eigenvalues using either the Jacobian matrix, transfer function, or any other viable method.
I have tried using:
[vector,lambda,condition_number] = polyeig(K(X_answer),C,M);
This is tricky since my K matrix is a function handle of X. In other words, K=@(X). X represents a displacement vector of each mass in the system (x_1(t),x_2(t),…x_resSize(t)), where resSize is the total number of masses. My X_answer matrix is a double with dimensions of t_ode by resSize, where each row is the displacement vector of each mass in double form. Is there some way to substitute X_answer into my function handle for K so I can use polyeig()? If not, how would I go about finding my system’s transfer function or Jacobian matrix so that I can find it’s eigenvalues? function, ode45, transfer function, matlab MATLAB Answers — New Questions
Troubleshooting QuickBooks Reconciliation Discrepancies: Resolving Issues
Reconciling your accounts in QuickBooks is a crucial step in maintaining accurate financial records. However, discrepancies can occur, leading to frustration and confusion. In this article, we’ll delve into what QuickBooks reconciliation discrepancies are, their potential causes, and effective solutions to resolve them.
What is a QuickBooks Reconciliation Discrepancy?
A reconciliation discrepancy in QuickBooks refers to a variance between the ending balance of an account in your company file and the ending balance on your bank statement after completing the reconciliation process. Essentially, it means that QuickBooks is not reflecting the same balance as your bank records.
Reasons for QuickBooks Reconciliation Discrepancies
Several factors can contribute to reconciliation discrepancies in QuickBooks:
Data Entry Errors: Mistakes in entering transactions, such as incorrect amounts or dates, can lead to imbalances between QuickBooks and your bank records.
Missing Transactions: Failure to record all transactions, such as deposits or withdrawals, in QuickBooks can result in reconciliation discrepancies.
Bank Errors: Sometimes, discrepancies may arise due to errors or delays in bank processing, leading to inconsistencies between QuickBooks and your bank statement.
Duplicate Transactions: Duplicate entries of transactions in QuickBooks can skew reconciliation results, causing discrepancies.
Unreconciled Transactions: Forgetting to reconcile transactions from previous periods can lead to ongoing discrepancies in subsequent reconciliations.
Solutions to QuickBooks Reconciliation Discrepancies
Review Transactions: Start by meticulously reviewing transactions in QuickBooks against your bank statement. Look for any discrepancies or missing entries that could be causing the imbalance.
Check Data Entry: Verify the accuracy of data entered into QuickBooks, including transaction amounts, dates, and account details. Correct any errors identified during the review process.
Reconcile Periodically: Regularly reconcile your accounts in QuickBooks to prevent discrepancies from accumulating over time. This practice helps to identify and address issues promptly.
Identify Duplicate Entries: Search for and eliminate duplicate transactions within QuickBooks to ensure that each transaction is recorded only once.
Review Bank Statements: Compare your bank statements with the transactions listed in QuickBooks to identify any discrepancies. This step can help pinpoint errors or missing entries.
Update QuickBooks: Ensure that you are using the latest version of QuickBooks and that all updates and patches are installed. Software updates often include bug fixes and improvements that can address reconciliation issues.
Seek Professional Help: If you’re unable to resolve reconciliation discrepancies on your own, consider consulting with a QuickBooks expert or accountant for assistance. They can provide guidance and expertise in troubleshooting complex issues.
Conclusion
QuickBooks reconciliation discrepancies can be a source of frustration for business owners and accounting professionals. However, by understanding the potential causes and implementing effective solutions, you can minimize the occurrence of discrepancies and maintain accurate financial records. Regularly reviewing transactions, checking for data entry errors, and reconciling accounts promptly are key practices to prevent and resolve reconciliation issues in QuickBooks. Remember, attention to detail and diligence are essential for ensuring the accuracy of your financial data and making informed business decisions.
Reconciling your accounts in QuickBooks is a crucial step in maintaining accurate financial records. However, discrepancies can occur, leading to frustration and confusion. In this article, we’ll delve into what QuickBooks reconciliation discrepancies are, their potential causes, and effective solutions to resolve them. What is a QuickBooks Reconciliation Discrepancy? A reconciliation discrepancy in QuickBooks refers to a variance between the ending balance of an account in your company file and the ending balance on your bank statement after completing the reconciliation process. Essentially, it means that QuickBooks is not reflecting the same balance as your bank records. Reasons for QuickBooks Reconciliation Discrepancies Several factors can contribute to reconciliation discrepancies in QuickBooks:Data Entry Errors: Mistakes in entering transactions, such as incorrect amounts or dates, can lead to imbalances between QuickBooks and your bank records.Missing Transactions: Failure to record all transactions, such as deposits or withdrawals, in QuickBooks can result in reconciliation discrepancies.Bank Errors: Sometimes, discrepancies may arise due to errors or delays in bank processing, leading to inconsistencies between QuickBooks and your bank statement.Duplicate Transactions: Duplicate entries of transactions in QuickBooks can skew reconciliation results, causing discrepancies.Unreconciled Transactions: Forgetting to reconcile transactions from previous periods can lead to ongoing discrepancies in subsequent reconciliations.Solutions to QuickBooks Reconciliation Discrepancies Review Transactions: Start by meticulously reviewing transactions in QuickBooks against your bank statement. Look for any discrepancies or missing entries that could be causing the imbalance.Check Data Entry: Verify the accuracy of data entered into QuickBooks, including transaction amounts, dates, and account details. Correct any errors identified during the review process.Reconcile Periodically: Regularly reconcile your accounts in QuickBooks to prevent discrepancies from accumulating over time. This practice helps to identify and address issues promptly.Identify Duplicate Entries: Search for and eliminate duplicate transactions within QuickBooks to ensure that each transaction is recorded only once.Review Bank Statements: Compare your bank statements with the transactions listed in QuickBooks to identify any discrepancies. This step can help pinpoint errors or missing entries.Update QuickBooks: Ensure that you are using the latest version of QuickBooks and that all updates and patches are installed. Software updates often include bug fixes and improvements that can address reconciliation issues.Seek Professional Help: If you’re unable to resolve reconciliation discrepancies on your own, consider consulting with a QuickBooks expert or accountant for assistance. They can provide guidance and expertise in troubleshooting complex issues.Conclusion QuickBooks reconciliation discrepancies can be a source of frustration for business owners and accounting professionals. However, by understanding the potential causes and implementing effective solutions, you can minimize the occurrence of discrepancies and maintain accurate financial records. Regularly reviewing transactions, checking for data entry errors, and reconciling accounts promptly are key practices to prevent and resolve reconciliation issues in QuickBooks. Remember, attention to detail and diligence are essential for ensuring the accuracy of your financial data and making informed business decisions. Read More
How not-for-profits can use Microsoft 365 to support their volunteer management
In the lead up to Australia’s National Volunteer Week (20-26 May), Motive Consulting are sharing tips on how not-for-profits can use Microsoft 365 applications to support their volunteer management.
From the Shifts app in Microsoft Teams to SharePoint, Power Apps and Power BI, there are many apps that can help make your volunteer programs more effective.
What other tips can you share?
In the lead up to Australia’s National Volunteer Week (20-26 May), Motive Consulting are sharing tips on how not-for-profits can use Microsoft 365 applications to support their volunteer management. From the Shifts app in Microsoft Teams to SharePoint, Power Apps and Power BI, there are many apps that can help make your volunteer programs more effective. What other tips can you share? Read More
Hotmail HELP!!! 2010-2016 emails badly needed help!!!
Hello,
Pleae help me…..im no expert but i need help and cant find any help or solutions to my problem of old history emails.
Does anyone have any idea how i can access my hotmail emails from like 2010-2016 i can get some 2016 ones but the ones i badly need i cant seem to get and i cant find any info or help reharding it and its really getting to me!!! Pleae help or give me directions where to go.
Appreciate anything to get them back
Thank you so much
Hello, Pleae help me…..im no expert but i need help and cant find any help or solutions to my problem of old history emails.Does anyone have any idea how i can access my hotmail emails from like 2010-2016 i can get some 2016 ones but the ones i badly need i cant seem to get and i cant find any info or help reharding it and its really getting to me!!! Pleae help or give me directions where to go.Appreciate anything to get them backThank you so much Read More
Add another account list of usernames
The list of usernames that appear when clicking on Add another account, where is it coming from? I am trying to delete a previously added account but I am unable to.
The list of usernames that appear when clicking on Add another account, where is it coming from? I am trying to delete a previously added account but I am unable to. Read More
How to Use Azure Virtual Network Manager’s UDR Management Feature
What will you learn in this blog?
What is Azure Virtual Network Manager’s UDR management feature?
How UDR management simplifies route settings
How you can automate routing behavior for the following scenarios:
Spoke virtual networks communicate to each other in a hub and spoke topology via a firewall in the hub
Spoke virtual networks in two hub and spoke topologies communicate via firewalls in the hubs
What is Azure Virtual Network Manager?
Azure Virtual Network Manager (AVNM) is a highly scalable and available network management solution that allows customers to simplify and scale their networks in Azure.
Learn more about AVNM in our public documentation.
What is AVNM’s UDR management feature and what is it solving?
User-defined route (UDR) management is a feature in AVNM that allows customers to describe their desired routing behavior via routing configurations that consist of routing rules. Upon deployment of the routing configuration, AVNM orchestrates UDRs to create the desired behavior.
AVNM aims to make managing routing behaviors easier and faster. Customers usually want to achieve different routing behaviors, and they usually create UDRs by hand or use custom scripts – however, these methods are complex and can cause mistakes, especially at scale. AVNM’s UDR management can simplify the process for you.
How does UDR management work?
UDR management configuration and rule collections
Similar to AVNM’s security admin feature, the UDR management feature is structured as a configuration that can contain multiple routing rule collections, which each can contain multiple routing rules.
Users create a routing configuration to define the desired routing behavior. Eventually, the user will need to deploy the routing configuration for the routing behavior described in its rules to take effect.
Within a routing configuration, there can be multiple rule collections. The function of the rule collection is to associate its rules with one or more target network groups, enabling users to achieve reusability and simplicity without recreating the same UDRs across several resources.
In a rule collection, route rules specify the desired routing behavior for all the members of its rule collection’s target network group(s), which can consist of subnets or virtual networks (VNets).
After the routing configuration (containing rule collection(s) targeting network group(s)) is deployed to the desired regions, then all the targeted subnets will receive the UDRs described in the routing configuration. Even after deployment, subnets that are newly created or added to the target network group(s) will receive the routing configuration’s UDRs – meaning users do not need to manually touch route tables.
Local route setting
You can select whether you want to create a local routing behavior so that if the source and destination are in the same VNet or subnet, then traffic routes directly to the destination.
You can choose from the following behaviors:
If the source and destination are in the same VNet, route to the destination directly.
If the source and destination are in the same subnet, route to the destination directly.
None of the above behavior.
The local route setting is especially useful when you create a routing configuration, intending for “traffic to go to 0/0 via an NVA but not when the destination is in the same VNet or subnet.”
Selecting “Direct routing within virtual network” or “Direct routing within subnet” creates a UDR with a “virtual network” next hop for local traffic routing within the same VNet or subnet. However, if the destination CIDR is fully contained within the source CIDR under these selections and direct routing is selected, a UDR specifying a network appliance as the next hop won’t be set up.
Route rule
Each route rule consists of the following attributes:
Name
Destination type
IP address
Destination IP addresses/CIDR ranges
Service tag
Next hop type
Virtual network gateway
Virtual network
Internet
Virtual appliance
Next hop address
Use Azure Firewall as the next hop
In AVNM’s UDR management, you can also easily choose an Azure Firewall as the next hop by importing Azure Firewall private IP address in your AVNM’s scope. AVNM will use the IP of the Azure Firewall you choose as the next hop.
For each type of next hop, please refer to the public documentation on UDRs.
Sample use cases
Below, we are going to demonstrate how you can use AVNM’s UDR management to create common routing behaviors.
Scenario I – route all traffic to Azure Firewall in a hub and spoke topology but not in the local VNet
Many customers want to route all traffic to an Azure Firewall, except the destination is in the same VNet since workloads in the same VNet are trusted.
Traditionally, creating such settings are cumbersome as new UDRs need to be created for each new subnets, and all route tables have different UDRs.
AVNM’s UDR management can achieve this scenario shown below in just a few steps.
Step 1. Create Network Manager
In the Azure Portal, click “Create network manager” and enable the user-defined routing feature.
Step 2. Create a spoke network group
After the successful creation of your Azure Virtual Network Manager resource, in the Network Groups page, select the button “Add a network group.”
Create a network group by naming it and adding VNets to the group. You can add VNets manually as static group members, or automatically as dynamic group members through conditional statements.
Here, we are going to create a network group of spoke VNets in the hub and spoke topology with the condition of VNets’ name containing “ANMDemo-Spoke.”
Step 3. Create a routing configuration and rule collection
Navigate to the Configurations page under Settings and select “Create” with the type “Routing configuration,” and add a rule collection, where the target network group is your spoke network group.
Step 4. Create routing rules
Create the following rule.
By using the above rule, you can easily route all traffic to an Azure Firewall, except the destination is in the same VNet to reduce latency for routing and inspection cost if the traffic within the same VNet is trusted. All new subnets in the VNets belonging to the spoke network group can automatically get the necessary UDRs to make this routing behavior happen.
Step 5. Commit the configuration
Deploy the configurations, and the target regions to commit your desired configuration(s).
Variation – route all traffic to Azure Firewall in a hub and spoke topology but trusted VNets can communicate directly
In this topology, some spoke VNets are directly connected by using AVNM’s direct connectivity, unlike the hub and spoke topology above. This topology helps some trusted VNets communicate directly without the hub’s firewall. This way, the latency between these VNets can be reduced. You can monitor the traffic between these VNets by using virtual network flow logs.
Step 1. Create a network group of trusted VNets
In your Network Manager resource, navigate to the Network groups page under Settings and select Create and create a network group with the member type Virtual network.
In the newly created network group, select Group members and click Add to add existing VNets.
Step 2. Create a connectivity configuration
In your Network Manager resource, navigate to the Configurations page under Settings and select Create – Connectivity configuration and create connectivity configurations.
In the Topology tab, select the Hub and spoke option and choose a hub VNet where the trusted spoke VNet is selected, and add the network group created in Step 1. Also check the Enable connectivity within network group option to enable direct connectivity within trusted VNets.
Step 3. Commit the configuration
Deploy the connectivity configuration to the target region to commit your desired configuration.
In your Network Manager resource, navigate to the Deployments page under Settings and click Deploy configurations – Connectivity configuration.
In Connectivity configurations, select Connectivity configuration you have created, and select the target regions where the configuration to be deployed.
Click Next and review the configuration to be deployed, then click Deploy.
Scenario II – spoke to spoke across two hubs (two hub and spoke topologies)
Some customers use a hub and spoke architecture for each region. It required many manual operations to do cross-hub and spoke with FWs/NVAs in the past because users needed many UDRs to be set up by hand, and when there were changes in spoke VNets, such as adding new spoke VNets and subnets, they also needed to change UDRs and route tables.
With UDR management, you can create the following:
Route rule collection for spoke network group 1:
Target network group = spoke network group 1
Add a route rule for each spoke VNet in hub and spoke 2: go to the spoke via FW1 in region 1
Route rule collection for AzFw1 network group 1 (network group of subnets):
Target network group = network group consisting of only AzFw1 subnet
Add a route rule for: go to the spokes via FW2 in region 2
Route rule collection for spoke network group 2:
Target network group = spoke network group 2
Add a route rule for each spoke VNet in hub and spoke 1: go to the spoke via FW2 in region 2
Route rule collection for AzFw network group 2 (network group of subnets):
Target network group = network group consisting of only AzFw2 subnet
Add a route rule: go to the spokes via FW2 in region 2
Note: you can create a network group of subnets for the subnet of Azure Firewall or any other firewall.
You need to add a route rule to the associated rule collection and deploy the configuration when there is a new spoke VNet in the environment. The rest will be orchestrated by AVNM.
In this scenario, we’ll create the following multi-hub and spoke topologies to work with a routing configuration.
Prerequisites:
VNets and Azure Firewall instances already exist. Please reference Azure Firewall’s tutorial for setup.
Azure Firewall needs to have network rules to allow cross-region traffic.
VNets in each hub are connected to each other and connect to the spoke VNets in the local region. You can reference AVNM’s connectivity configuration documentation to configure a hub and spoke topology in each region.
Create a VM in a spoke VNet to confirm network connectivity across regions.
Note: if you manually create VNet peerings, you need to check the “Allow <VNet name> to receive forwarded traffic from the peered virtual network” option, otherwise the forwarded traffic received from your Azure Firewall will be dropped. See the VNet peering public documentation for more information.
Step 1. Create network groups
Create these four network groups to archive multiple hub and spoke topologies in your existing network manager resource. Also, in this demo, we assume that each spoke has two VNets.
Network group for spoke VNets in WestUS2
Network group for AzureFirewallSubnet in WestUS2
Network group for spoke VNets in EastUS
Network group for AzureFirewallSubnet in EastUS
Create network group for spoke VNets in WestUS2
In your Network Manager resource, navigate to the Network groups page under Settings and select Create and create a network group with member type Virtual Network.
After successfully creating the network group, add spoke VNets in WestUS2 as group members.
Note: In this demo, we’re manually adding members, but it’s also possible to adopt a configuration where VNets are automatically added using Azure Policy.
Create network group for AzureFirewallSubnet in WestUS2
In your Network Manager resource, navigate to the Network groups page under Settings and select Create and create a network group with member type Subnet.
After successfully creating the network group, add AzureFirewallSubnet in WestUS2 as a group member.
Create network group for spoke VNets in EastUS
Repeat the same procedure outlined in (1) for EastUS.
Create network group for AzureFirewallSubnet in EastUS
Repeat the same procedure outlined in (2) for EastUS.
Done! Now we have created four network groups with the appropriate VNets and subnets included. We’ll create routing rules for each of these network groups in a later step.
Step 2. Create a routing configuration and rule collections
Create a routing configuration with four rule collections. Each rule collection needs to be attached to a corresponding network group created in Step 1.
Note: A routing configuration is a resource that contains multiple rule collections, and each rule collection includes rule(s) that describes actual routing information. The relationship of these resources are as follows:
Create routing configuration
In your Network Manager resource, navigate to the Configurations page under Settings and select Create and select Routing configuration.
In the Create a routing configuration pane, input a configuration name, and click Next.
In the Rule collections tab, click Add to create rule collections.
Create four rule collections as follows without rules. Each rule collection has a 1:1 relationship with the network groups created in Step 1.
Click Next and Create the routing configuration.
We have attached a rule collection to each network group, but there are no routing rules yet in the rule collections. Now we need to create the actual routing rules for each rule collection in the next step to achieve cross-region connectivity.
Step 3. Create routing rules for each rule collection
In this step, we’ll create routing rules in the following Rule collections which was created in the previous step.
RuleCol-Spoke-WestUS2
RuleCol-FWSubnet-WestUS2
RuleCol-Spoke-EastUS
RuleCol-FWSubnet-EastUS
Routing rules for RuleCol-Spoke-WestUS2
We need to add routing rules for the WestUS2 spoke VNets. For this example, we’ll create a 0/0 route (default route) with the local Firewall as the next hop. This configuration not only allows filtering of traffic towards the internet but also enables using the local Firewall as a router to facilitate communication between spokes across regions.
In your Network Manager resource, navigate to the Configurations page under Settings and select the rule configuration created in Step 2.
In the rule configuration, select the rule collection for the spoke VNets in WestUS2.
Click Add to create a rule. Destination IP addresses/CIDR ranges is the default route (0/0), Next hop type is Virtual appliance, and Next hop address is your Azure Firewall IP Address in WestUS2.
Click Add to create the rule.
Routing rules for RuleCol-FWSubnet-WestUS2
We need to add routing rules for the Azure Firewall subnet. We need to add the address prefix used in the remote region, because spoke VNets in each region don’t know any of the address prefixes in the remote region. Therefore, to facilitate communication between spokes in different regions, it’s necessary to relay traffic to the firewall in each region, and we’ll create a routing rule here for that purpose.
Note: In this demo, we create a summary of the address prefixes used in the remote region instead of creating each VNet’s address prefix (e.g. address prefixes used in the remote region are 10.0.0.0/22, 10.0.11.0/0, 10.0.12.0/24, and these prefixes can be summarized by 10.0.0.0/16).
Summarizing address prefixes offers the benefit of not needing to change the routing rules for the firewall subnet even if new spokes are added to each region. However, it’s important to pre-define the address prefixes used in each region, including for future use.
In the rule configuration, select the rule collection for the Azure Firewall subnet in WestUS2.
Click Add to create the rule. Destination IP addresses/CIDR ranges is a summary of the address prefixes used in the remote region, Next hop type is Virtual appliance, and Next hop address is your remote Azure Firewall IP Address in EastUS.
Click Add to create the rule.
The AzureFirewallSubnet has a requirement to have a default route (0.0.0.0/0) with next hop type internet. Then we have to add this rule in this rule collection.
Routing rules for RuleCol-Spoke-EastUS
Repeat the same procedure outlined in (1) for EastUS.
Routing rules for RuleCol-FWSubnet-EastUS
Repeat the same procedure outlined in (2) for EastUS.
From the above steps, we have defined the configurations, but there have been no changes in the actual environment yet. In the next step, we will deploy the defined configuration and ensure that routing is operational.
We can see all the defined rules at a glance from Routing Configuration – Rules.
Step 4. Commit the configuration
Deploy the routing configuration to the target region to commit your desired configuration.
In your Network Manager resource, navigate to the Deployments page under Settings and click Deploy configurations – Routing configuration.
In User defined routing configurations, select the routing configuration you have created, and select the target regions where the configuration needs to be deployed.
Click Next and review the configuration to be deployed, then click Deploy.
Once the configuration is successfully deployed, you’ll be able to see the route tables created by Network Manager are automatically linked to the subnet(s).
Select one of the VNets targeted by the routing configuration and navigate to Subnets and select the link of the route table attached to the subnet.
You’ll be able to confirm the defined routes exist in this route table.
You can also check if VMs located in different regions can connect to each other.
Step 5. Adding spoke VNet to the existing multi-hub-spoke topologies
All you need to do is add the new spoke VNet to the existing network group, and network manager will automatically detect the membership change and apply defined routing rules to the new VNet. Similarly, when removing a VNet from the network group, the applied routing rule will be automatically removed as well.
In summary
By using UDR management, you can simplify the configuration and maintenance of routing behaviors. With network groups and routing rules, you can define and apply routing rules to multiple VNets without manually configuring route tables for each VNet or subnet. You can also easily add or remove VNets from the network groups and have the routing rules automatically update route tables for you accordingly. This makes it easy for users to manage various routing behaviors for different topologies.
Microsoft Tech Community – Latest Blogs –Read More
ExperienceBufferLength in Reinforcement Learning Toolbox
Hello, everyone,
I found a problem with the ‘ExperienceBufferLength’ property in ‘rlDDPGAgentOptions’ when specifying options for rl agents.
Usually this property is set as 1e6 in the examples of the Help documentation, such as here.
In this example, every episode has 600 (60/0.1) steps. Does the agent start to train when the experience buffer is filled up with the experiences (S,A,R,S’). If so, it would take at least 1667 (1000000/600 ) episodes before the agent starts to improve.
So I want to know how to determine this value.Hello, everyone,
I found a problem with the ‘ExperienceBufferLength’ property in ‘rlDDPGAgentOptions’ when specifying options for rl agents.
Usually this property is set as 1e6 in the examples of the Help documentation, such as here.
In this example, every episode has 600 (60/0.1) steps. Does the agent start to train when the experience buffer is filled up with the experiences (S,A,R,S’). If so, it would take at least 1667 (1000000/600 ) episodes before the agent starts to improve.
So I want to know how to determine this value. Hello, everyone,
I found a problem with the ‘ExperienceBufferLength’ property in ‘rlDDPGAgentOptions’ when specifying options for rl agents.
Usually this property is set as 1e6 in the examples of the Help documentation, such as here.
In this example, every episode has 600 (60/0.1) steps. Does the agent start to train when the experience buffer is filled up with the experiences (S,A,R,S’). If so, it would take at least 1667 (1000000/600 ) episodes before the agent starts to improve.
So I want to know how to determine this value. reinforcement learning, ddpg, experiencebufferlength MATLAB Answers — New Questions
Error using fmincon and integral2: taking integral variables theta and p as an array while performing computation
I am minimizing q for whole range of p and theta; p has limit from 2pi to 20pi and theta from 0 to pi; to find the value of d, r_g,G_g. q is function of theta, p,d, r_g, G_g.
But while computation p and theta are behaving as an array. Because of this I am getting error. I tried using "ArrayValued", true. This is also not working. How to correct this. Here my part of code
[q] = optimizeParameters();% Call optimizeParameters to define the objective function q
options = optimset(‘PlotFcns’, @optimplotfval);% Set optimization options
d0 = [-0.5, 24, 3e6];
lb = [-1, 24, 2e6];
ub = [0, 32, 6e6];
[solution,fval] = fmincon(@(x)integral2(@(theta,p)q(theta,p,x(1),x(2),x(3)),pi/36,pi/6,2*pi,20*pi),d0,[],[],[],[],lb,ub,[],options); % minimize
function q = optimizeParameters()
Vs = 250;
k = @(p)p/Vs;
c = @(theta)Vs./sin(theta);
w5 = 0.001;
n = 3;
dl = -6;
d1 = @(d)dl + 2 * n * d – d;
q = @(theta, p, d, r_g, G_g) calculateObjective(theta, p, d, r_g, G_g, Vs, k, c, w5, n, dl, d1);
end
function answer = calculateObjective(theta, p, d, r_g, G_g, Vs, k, c, w5, n, dl, d1);
% printing the p and thetahere which is giving an array because of this error in further computation
theta
p
% rest of the code
endI am minimizing q for whole range of p and theta; p has limit from 2pi to 20pi and theta from 0 to pi; to find the value of d, r_g,G_g. q is function of theta, p,d, r_g, G_g.
But while computation p and theta are behaving as an array. Because of this I am getting error. I tried using "ArrayValued", true. This is also not working. How to correct this. Here my part of code
[q] = optimizeParameters();% Call optimizeParameters to define the objective function q
options = optimset(‘PlotFcns’, @optimplotfval);% Set optimization options
d0 = [-0.5, 24, 3e6];
lb = [-1, 24, 2e6];
ub = [0, 32, 6e6];
[solution,fval] = fmincon(@(x)integral2(@(theta,p)q(theta,p,x(1),x(2),x(3)),pi/36,pi/6,2*pi,20*pi),d0,[],[],[],[],lb,ub,[],options); % minimize
function q = optimizeParameters()
Vs = 250;
k = @(p)p/Vs;
c = @(theta)Vs./sin(theta);
w5 = 0.001;
n = 3;
dl = -6;
d1 = @(d)dl + 2 * n * d – d;
q = @(theta, p, d, r_g, G_g) calculateObjective(theta, p, d, r_g, G_g, Vs, k, c, w5, n, dl, d1);
end
function answer = calculateObjective(theta, p, d, r_g, G_g, Vs, k, c, w5, n, dl, d1);
% printing the p and thetahere which is giving an array because of this error in further computation
theta
p
% rest of the code
end I am minimizing q for whole range of p and theta; p has limit from 2pi to 20pi and theta from 0 to pi; to find the value of d, r_g,G_g. q is function of theta, p,d, r_g, G_g.
But while computation p and theta are behaving as an array. Because of this I am getting error. I tried using "ArrayValued", true. This is also not working. How to correct this. Here my part of code
[q] = optimizeParameters();% Call optimizeParameters to define the objective function q
options = optimset(‘PlotFcns’, @optimplotfval);% Set optimization options
d0 = [-0.5, 24, 3e6];
lb = [-1, 24, 2e6];
ub = [0, 32, 6e6];
[solution,fval] = fmincon(@(x)integral2(@(theta,p)q(theta,p,x(1),x(2),x(3)),pi/36,pi/6,2*pi,20*pi),d0,[],[],[],[],lb,ub,[],options); % minimize
function q = optimizeParameters()
Vs = 250;
k = @(p)p/Vs;
c = @(theta)Vs./sin(theta);
w5 = 0.001;
n = 3;
dl = -6;
d1 = @(d)dl + 2 * n * d – d;
q = @(theta, p, d, r_g, G_g) calculateObjective(theta, p, d, r_g, G_g, Vs, k, c, w5, n, dl, d1);
end
function answer = calculateObjective(theta, p, d, r_g, G_g, Vs, k, c, w5, n, dl, d1);
% printing the p and thetahere which is giving an array because of this error in further computation
theta
p
% rest of the code
end integral2, fmicon, arrayvalued MATLAB Answers — New Questions