Month: June 2024
Why is View My Paycheck Not Working?
I’ve been trying to access my paycheck details through the “View My Paycheck” portal, but it isn’t working. I’ve checked my internet connection and tried different browsers, but nothing seems to help. The page either doesn’t load or shows an error message. What could be causing this issue, and how can I resolve it?
I’ve been trying to access my paycheck details through the “View My Paycheck” portal, but it isn’t working. I’ve checked my internet connection and tried different browsers, but nothing seems to help. The page either doesn’t load or shows an error message. What could be causing this issue, and how can I resolve it? Read More
What Could be the Reason for Workforce Not Displaying Paystubs?
I’ve been trying to access my paystubs on the Workforce platform, but they’re not showing up. Despite logging in multiple times and navigating through the platform, I can’t seem to find my paystub information. I’ve checked my account settings and ensured that I’m accessing the correct portal, but the issue persists. Can you help me understand why my paystubs aren’t appearing on the Workforce platform and what steps I can take to resolve this?
I’ve been trying to access my paystubs on the Workforce platform, but they’re not showing up. Despite logging in multiple times and navigating through the platform, I can’t seem to find my paystub information. I’ve checked my account settings and ensured that I’m accessing the correct portal, but the issue persists. Can you help me understand why my paystubs aren’t appearing on the Workforce platform and what steps I can take to resolve this? Read More
How to insert equation in Microsoft Publisher?
Hello dear experts,
If is there any one who can help me to solve the problem of inserting equation in Microsoft Publisher?
I have tried to add an object named the Microsoft Equation 3.0, but there is not seen such thing in that.
Hello dear experts,If is there any one who can help me to solve the problem of inserting equation in Microsoft Publisher?I have tried to add an object named the Microsoft Equation 3.0, but there is not seen such thing in that. Read More
Why Is Workforce Not Showing Paystub?
I’ve been attempting to access my paystub on the Workforce platform, but it’s not displaying. Despite logging in and navigating through the platform, I can’t seem to find any information regarding my paystub. I’ve checked my account settings and verified that I’m accessing the correct portal, but the issue persists. Can you help me understand why my paystub isn’t showing up on the Workforce platform and provide guidance on how to resolve this?
I’ve been attempting to access my paystub on the Workforce platform, but it’s not displaying. Despite logging in and navigating through the platform, I can’t seem to find any information regarding my paystub. I’ve checked my account settings and verified that I’m accessing the correct portal, but the issue persists. Can you help me understand why my paystub isn’t showing up on the Workforce platform and provide guidance on how to resolve this? Read More
Value Base Delivery (VBD) to accelerate GenAI use case implementation
Exploring Generative AI Solutions: A Customer-Centric Approach
When faced with specific challenges, customers often seek Generative AI solutions. These solutions, while powerful, come with inherent complexity. They involve integrating diverse data sources, augmenting data, automating business processes, and gathering input from end users. To successfully implement such solutions and leverage publicly available Accelerators, users must possess technical expertise, allocate sufficient time for implementation, and adhere to best practices. Additionally, they need to carefully evaluate which solution aligns with their unique issue.
Microsoft recognizes these challenges and has developed a series of Value-Based Deliveries (VBDs). These meticulously tailored VBDs address customer needs while adhering to industry best practices. During Value-Based Deliveries, customers learn while entrusting the intricate aspects and acceleration process of Generative AI solutions to Microsoft. In this blog, we will delve into an explanation of Accelerators and VBDs.
Accelerators & Value-Based Deliveries:
Accelerators: Customers have the right to use openly available accelerators to build their own solutions. However, this standardized technique may not always fit every customer scenario. Adjusting the accelerator requires expertise, and customers must have highly trained personnel to work on it.
Value-Based Delivery (VBD): VBD is a customer-focused approach to software development. It provides 24/7 as-needed problem-solving with critical incident escalation, ensuring that Microsoft’s services align with the customer’s needs. VBDs prioritize creating software that directly contributes to business value and aligns with organizational goals. While accelerators can support VBDs, using accelerators alone resembles a QuickStart, template, or architectural reference—not a fully built solution.
A team of trusted advisors, led by Microsoft Subject Matter Experts (SMEs), provides thorough guidance and developer support to accelerate business outcomes. VBDs are designed programs tailored to customers’ development needs and business goals. They leverage proven tools, best practices, and deep technical expertise to create high-value and positive outcomes for customer use cases. With direct, high-level assistance at each stage of the development life cycle, customers can establish consistent methodologies, progress competitively, and overcome deployment challenges.
Interested in learning more? Reach out to the Account Team!
@arung @Paolo Colecchia @Stephen Rhoades @Taonga_Banda @renbafa @morgan Gladwell
Microsoft Tech Community – Latest Blogs –Read More
Time format is changed to decimal when calling the time data from excel.
In matlab, when i read a time data (hh:mm:ss AM/PM) from excel, the time data becomes decimal number so unable to plot the time in x-axis in hh:mm:ss format. Kindly guideIn matlab, when i read a time data (hh:mm:ss AM/PM) from excel, the time data becomes decimal number so unable to plot the time in x-axis in hh:mm:ss format. Kindly guide In matlab, when i read a time data (hh:mm:ss AM/PM) from excel, the time data becomes decimal number so unable to plot the time in x-axis in hh:mm:ss format. Kindly guide time format, hh:mm:ss MATLAB Answers — New Questions
importing data from .csv files of different lengths and same columns in matlab and getting RMS.
I have a displacement data in 73 .csv files which are comma separated with 7 (fixed) columns and rows (varying) from 1500 to 9000 rows depending on the file. Each file contains 7 Columns as x y z(coordinates of voxels) and u v w(displacements in u v w directions) and sigma in 7th column. I want to create a code to read the .csv files and get the rms error in u v w directions respectively. RMS formula has to applied and i have to get 1 rms value for all the files combined and that too it should consider all the values of u v w in all the files.Can someone help me with the idea.I have attached the code which i used which i not working. I attached some files of the format .csv in the attachments.
data0001 = csvread(‘C://Users//User//Desktop//.csv//data_0001.csv’);
.
.
.
.
.
data0071 = csvread(‘C://Users//User//Desktop//.csv//data_0071.csv’);
data0072 = csvread(‘C://Users//User//Desktop//.csv//data_0072.csv’);
data0073 = csvread(‘C://Users//User//Desktop//.csv//data_0073.csv’);
%Root Mean Squared Error
for ii= 01:01:73
erroru{ii} = (sum((data00ii(:,4)).^2)); %error in u
errorv{ii} = (sum((data00ii(:,5)).^2)); %error in v
errorw{ii} = (sum((data00ii(:,6)).^2)); %error in w
U=erroru{ii}/(length(data00ii));
V=errorv{ii}/(length(data00ii));
W=errorw{ii}/(length(data00ii));
S= sum(U+V+W);
rmsError{ii} = sqrt(S);
show(rmsError{ii})
endI have a displacement data in 73 .csv files which are comma separated with 7 (fixed) columns and rows (varying) from 1500 to 9000 rows depending on the file. Each file contains 7 Columns as x y z(coordinates of voxels) and u v w(displacements in u v w directions) and sigma in 7th column. I want to create a code to read the .csv files and get the rms error in u v w directions respectively. RMS formula has to applied and i have to get 1 rms value for all the files combined and that too it should consider all the values of u v w in all the files.Can someone help me with the idea.I have attached the code which i used which i not working. I attached some files of the format .csv in the attachments.
data0001 = csvread(‘C://Users//User//Desktop//.csv//data_0001.csv’);
.
.
.
.
.
data0071 = csvread(‘C://Users//User//Desktop//.csv//data_0071.csv’);
data0072 = csvread(‘C://Users//User//Desktop//.csv//data_0072.csv’);
data0073 = csvread(‘C://Users//User//Desktop//.csv//data_0073.csv’);
%Root Mean Squared Error
for ii= 01:01:73
erroru{ii} = (sum((data00ii(:,4)).^2)); %error in u
errorv{ii} = (sum((data00ii(:,5)).^2)); %error in v
errorw{ii} = (sum((data00ii(:,6)).^2)); %error in w
U=erroru{ii}/(length(data00ii));
V=errorv{ii}/(length(data00ii));
W=errorw{ii}/(length(data00ii));
S= sum(U+V+W);
rmsError{ii} = sqrt(S);
show(rmsError{ii})
end I have a displacement data in 73 .csv files which are comma separated with 7 (fixed) columns and rows (varying) from 1500 to 9000 rows depending on the file. Each file contains 7 Columns as x y z(coordinates of voxels) and u v w(displacements in u v w directions) and sigma in 7th column. I want to create a code to read the .csv files and get the rms error in u v w directions respectively. RMS formula has to applied and i have to get 1 rms value for all the files combined and that too it should consider all the values of u v w in all the files.Can someone help me with the idea.I have attached the code which i used which i not working. I attached some files of the format .csv in the attachments.
data0001 = csvread(‘C://Users//User//Desktop//.csv//data_0001.csv’);
.
.
.
.
.
data0071 = csvread(‘C://Users//User//Desktop//.csv//data_0071.csv’);
data0072 = csvread(‘C://Users//User//Desktop//.csv//data_0072.csv’);
data0073 = csvread(‘C://Users//User//Desktop//.csv//data_0073.csv’);
%Root Mean Squared Error
for ii= 01:01:73
erroru{ii} = (sum((data00ii(:,4)).^2)); %error in u
errorv{ii} = (sum((data00ii(:,5)).^2)); %error in v
errorw{ii} = (sum((data00ii(:,6)).^2)); %error in w
U=erroru{ii}/(length(data00ii));
V=errorv{ii}/(length(data00ii));
W=errorw{ii}/(length(data00ii));
S= sum(U+V+W);
rmsError{ii} = sqrt(S);
show(rmsError{ii})
end rms, csv MATLAB Answers — New Questions
Copilot now available in classic Outlook for Windows 10 and 11?
Hi.
I’ve noticed that the Copilot feature is now available in my classic Outlook app. However, I’m not sure how to get access to this feature. I’ve checked the settings and options, but I couldn’t find any information on how to enable or configure Copilot.
I’d love to hear any suggestions or solutions on how to access this feature and make the most of it. Thank you.
Hi.I’ve noticed that the Copilot feature is now available in my classic Outlook app. However, I’m not sure how to get access to this feature. I’ve checked the settings and options, but I couldn’t find any information on how to enable or configure Copilot.I’d love to hear any suggestions or solutions on how to access this feature and make the most of it. Thank you. Read More
Blocking Download Access to Teams Channel Meeting Recordings
Our review of the Videos chapter for the Office 365 for IT Pros eBook found a Teams meeting policy setting we hadn’t documented to block downloads for channel meeting recordings. Naturally, this was a disaster, so we spent some time investigating what the policy setting does and if it’s useful in practice. It works, but do you want to block downloads of channel meeting recordings?
https://office365itpros.com/2024/06/13/channel-meeting-recordings/
Our review of the Videos chapter for the Office 365 for IT Pros eBook found a Teams meeting policy setting we hadn’t documented to block downloads for channel meeting recordings. Naturally, this was a disaster, so we spent some time investigating what the policy setting does and if it’s useful in practice. It works, but do you want to block downloads of channel meeting recordings?
https://office365itpros.com/2024/06/13/channel-meeting-recordings/ Read More
The setting of MaxNegPhaseCorrection(Windows Server 2022)
Hello, sorry to bother you at work!
I modified the value of “MaxNegPhaseCorrection” from “HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfig” and then added the computer to the domain. Then I found that the value of MaxNegPhaseCorrection changed to 0xFFFFFFFF。
I saw on your official website that the default value for domain members is 0xFFFFFFFF。
So I would like to ask the following questions:
1, Why did the above situation occur?
2, Will the settings for W32Time all be reset to default values after joining a computer to a certain domain? Or will only the value of MaxNegPhaseCorrection be reset?
3,Is there any way for me to avoid such situations after adding domains?
My problem is like this. I would greatly appreciate it if you could reply to me.
Wishing you a happy life!
Hello, sorry to bother you at work! I modified the value of “MaxNegPhaseCorrection” from “HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfig” and then added the computer to the domain. Then I found that the value of MaxNegPhaseCorrection changed to 0xFFFFFFFF。 I saw on your official website that the default value for domain members is 0xFFFFFFFF。 So I would like to ask the following questions: 1, Why did the above situation occur? 2, Will the settings for W32Time all be reset to default values after joining a computer to a certain domain? Or will only the value of MaxNegPhaseCorrection be reset? 3,Is there any way for me to avoid such situations after adding domains? My problem is like this. I would greatly appreciate it if you could reply to me. Wishing you a happy life! Read More
Windows 11 Explorer close, What’s wrong?
Sometimes, I’m just browsing through my files and folders, and then the Explorer window will suddenly disappear. Other times, it might happen when I’m trying to open a specific folder or file. The weird thing is that the Explorer window doesn’t give me any error message or warning before closing. What’s wrong?
Sometimes, I’m just browsing through my files and folders, and then the Explorer window will suddenly disappear. Other times, it might happen when I’m trying to open a specific folder or file. The weird thing is that the Explorer window doesn’t give me any error message or warning before closing. What’s wrong? Read More
Pull data from sheet2 into sheet1 and match with same values
I have been looking through the previous post but have been unable to adapt a formula for my specific requirement.
I have a full data set (design) in sheet one and a partial data set (survey) in sheet two. I want to grab the 3 rows of information from the partial survey data set and insert them adjacent to the design data set to be able to compare.
thanks
I have been looking through the previous post but have been unable to adapt a formula for my specific requirement.I have a full data set (design) in sheet one and a partial data set (survey) in sheet two. I want to grab the 3 rows of information from the partial survey data set and insert them adjacent to the design data set to be able to compare. thanks Read More
Can anyone suggest me a best audio converter for Windows 11?
Hello, this is my first time asking for help, I am looking for a reliable audio converter for Windows 11. I’ve tried a lot of online tools, but they’re always filled with ads or have poor audio quality. Plus, you never know when these things pose a security risk to you. I’m looking for a simple and reliable program that can handle a variety of formats (mp3, m4a) without degrading the audio quality. If it can do batch conversions, that would be even better.
Any recommendations would be super helpful. Thanks a lot!
Hello, this is my first time asking for help, I am looking for a reliable audio converter for Windows 11. I’ve tried a lot of online tools, but they’re always filled with ads or have poor audio quality. Plus, you never know when these things pose a security risk to you. I’m looking for a simple and reliable program that can handle a variety of formats (mp3, m4a) without degrading the audio quality. If it can do batch conversions, that would be even better. Any recommendations would be super helpful. Thanks a lot! Read More
Useability
I want to replace one style with another. But when I go to do it, the “Find Style” list is out of order, and I have to waste time going through the whole list looking for it.
When I try to choose the new style, the “Replace With Style” is out of order, and I have to waste time again, looking for one of Word’s handy styles.
To make things even more fun, the tiny little windows I just mentioned, like so maaaany others, are not resizeable. Little windows that must display dozens of styles, tiny as postage stamps since I fell victim to Word. Forever and ever, Amen.
Then I have to refresh the source of some OLE links. But the option is not in the menus, which since I am a victim of Word dance and dance, as if the party lasted for ever and ever, Amen.
I suppose an organisation as big as yours has a Customer Life Impossibility Design department, staffed, I’m sure, by hundreds of thinking heads, straight out of some very dark, dank, screaming, echoing place.
I want to replace one style with another. But when I go to do it, the “Find Style” list is out of order, and I have to waste time going through the whole list looking for it. When I try to choose the new style, the “Replace With Style” is out of order, and I have to waste time again, looking for one of Word’s handy styles. To make things even more fun, the tiny little windows I just mentioned, like so maaaany others, are not resizeable. Little windows that must display dozens of styles, tiny as postage stamps since I fell victim to Word. Forever and ever, Amen. Then I have to refresh the source of some OLE links. But the option is not in the menus, which since I am a victim of Word dance and dance, as if the party lasted for ever and ever, Amen. I suppose an organisation as big as yours has a Customer Life Impossibility Design department, staffed, I’m sure, by hundreds of thinking heads, straight out of some very dark, dank, screaming, echoing place. Read More
Azure Advisor Cost Optimization workbook – April release
Overview
The Azure Cost Optimization workbook is a powerful tool that helps you monitor and optimize your Azure costs. It provides you with a comprehensive overview of your Azure environment and offers actionable insights and recommendations based on the Well-Architected Framework Cost Optimization pillar.
This workbook is natively available on Azure Advisor for all customers, and an editable version is also available as part of the FinOps toolkit.
If you haven’t used it already, the workbook template is offered in Advisor gallery and does not require any setup.
Here is how you can get started:
1) Navigate to Workbooks gallery in Azure Advisor.
2) Open Cost Optimization workbook template.
3) Select an area to explore.
Release notes
New Additions
New query to identify idle ExpressRoute circuits: Express Route Gateways without a completed circuit (ISP has not completed the connection) still incurs charges, so it’s better to review if they are used or not.
New query to show the Routing Preference for the public Ip addresses: Azure routing preference enables you to choose how your traffic routes between Azure and the Internet. You can choose to route traffic either via the Microsoft network or via the ISP network (public internet). Selecting the right routing preference for your workload can affect the efficiency and cost of your traffic.
New query to show the public Ip addresses with DDoS enabled: If you need to protect fewer than 15 public IP resources, the IP Protection tier is the more cost-effective option. However, if you have more than 15 public IP resources to protect, then the Network Protection tier becomes more cost-effective.
New pie chart to summarize commitment discount savings
New queries to show Azure Hybrid Benefit for Azure SQL Database elastic pools
Feedback
We hope that you find the Azure Cost Optimization workbook useful and that it helps you optimize your Azure spending. We are constantly working to improve the workbook and add new features and enhancements. We welcome your feedback and suggestions on how we can make it better. Please feel free to submit any suggestions through the FinOps Toolkit GitHub repository.
Microsoft Tech Community – Latest Blogs –Read More
How to check if my linear constraints and bounds are infeasible & reduce execution time?
Hello,
I’m making a code where it creates an optimized engine usage schedule based on engine’s reliability using genetic algorithm solver. The following is the code that I’ve made:
tic
clear
% Create arrays to store total Hour & daily result
totalHourWeekday = zeros(5,13);
result = zeros(5,13);
% Calculate the maximum engine by adding all of the engine’s status
engineStatus = ones(1,13);
maxEngine = sum(engineStatus);
% Initialize optimization problem
rel = zeros(1,13);
decision = optimproblem("ObjectiveSense","max");
engine = optimvar(‘engine’,13,’Type’,’integer’,’LowerBound’,0,’UpperBound’,1);
% Define days
for day = 1:5
% calculate maximum duration
maxDuration = 24*max(day);
% Initialize demand
for demand = 1:5
disp([‘Day: ‘,num2str(day),’ Demand: ‘,num2str(demand)])
switch demand
case 1
hourDemand = 3;
engineDemand = 9;
% Calculate reliability based on the sum between the hour
% demand & previous hour
if day == 1
timeCalc = hourDemand + totalHourWeekday(demand,:);
else
timeCalc = hourDemand + result(day-1,:);
end
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
% Set reliability as objective function
decision.Objective = relSys;
% Initialize constraint #1: engines should be equal to the
% demand
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
% Initialize constraint #2: engine’s hour should be less
% than max duration
if day == 1
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand,:) <= maxDuration;
else
decision.Constraints.durationConstraint = engine*result(day-1,:) <= maxDuration;
end
% Solve optimization problem
sol = solve(decision);
% Add the hour demand to the chosen engines
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 2
hourDemand = 2;
engineDemand = 6;
timeCalc = hourDemand + totalHourWeekday(demand-1,:);
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
decision.Objective = relSys;
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand-1,:) <= maxDuration;
sol = solve(decision);
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 3
hourDemand = 5;
engineDemand = 10;
timeCalc = hourDemand + totalHourWeekday(demand-1,:);
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
decision.Objective = relSys;
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand-1,:) <= maxDuration;
sol = solve(decision);
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 4
hourDemand = 8;
engineDemand = maxEngine-1;
timeCalc = hourDemand + totalHourWeekday(demand-1,:);
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
decision.Objective = relSys;
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand-1,:) <= maxDuration;
sol = solve(decision);
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 5
% Special case
for i = 1:13
if engineStatus(1,i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + 6;
end
end
end
% Add the total hour from all hour demands within the day
if day == 1
result(day,:) = sum(totalHourWeekday);
else
result(day,:) = result(day-1,:) + sum(totalHourWeekday);
end
end
end
The code ran well until it reached 4th day. When calculating 4th day’s 1st demand, it gave me the following error:
I guessed that, since it gave the infeasible linear constraints and bounds, an error was detected on line 57. That’s why I am wondering how to solve this problem or how to check for linear constraints and bounds infeasibility?
Furthermore, is there any way to reduce the code’s execution time?
Thank you in advanceHello,
I’m making a code where it creates an optimized engine usage schedule based on engine’s reliability using genetic algorithm solver. The following is the code that I’ve made:
tic
clear
% Create arrays to store total Hour & daily result
totalHourWeekday = zeros(5,13);
result = zeros(5,13);
% Calculate the maximum engine by adding all of the engine’s status
engineStatus = ones(1,13);
maxEngine = sum(engineStatus);
% Initialize optimization problem
rel = zeros(1,13);
decision = optimproblem("ObjectiveSense","max");
engine = optimvar(‘engine’,13,’Type’,’integer’,’LowerBound’,0,’UpperBound’,1);
% Define days
for day = 1:5
% calculate maximum duration
maxDuration = 24*max(day);
% Initialize demand
for demand = 1:5
disp([‘Day: ‘,num2str(day),’ Demand: ‘,num2str(demand)])
switch demand
case 1
hourDemand = 3;
engineDemand = 9;
% Calculate reliability based on the sum between the hour
% demand & previous hour
if day == 1
timeCalc = hourDemand + totalHourWeekday(demand,:);
else
timeCalc = hourDemand + result(day-1,:);
end
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
% Set reliability as objective function
decision.Objective = relSys;
% Initialize constraint #1: engines should be equal to the
% demand
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
% Initialize constraint #2: engine’s hour should be less
% than max duration
if day == 1
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand,:) <= maxDuration;
else
decision.Constraints.durationConstraint = engine*result(day-1,:) <= maxDuration;
end
% Solve optimization problem
sol = solve(decision);
% Add the hour demand to the chosen engines
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 2
hourDemand = 2;
engineDemand = 6;
timeCalc = hourDemand + totalHourWeekday(demand-1,:);
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
decision.Objective = relSys;
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand-1,:) <= maxDuration;
sol = solve(decision);
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 3
hourDemand = 5;
engineDemand = 10;
timeCalc = hourDemand + totalHourWeekday(demand-1,:);
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
decision.Objective = relSys;
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand-1,:) <= maxDuration;
sol = solve(decision);
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 4
hourDemand = 8;
engineDemand = maxEngine-1;
timeCalc = hourDemand + totalHourWeekday(demand-1,:);
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
decision.Objective = relSys;
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand-1,:) <= maxDuration;
sol = solve(decision);
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 5
% Special case
for i = 1:13
if engineStatus(1,i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + 6;
end
end
end
% Add the total hour from all hour demands within the day
if day == 1
result(day,:) = sum(totalHourWeekday);
else
result(day,:) = result(day-1,:) + sum(totalHourWeekday);
end
end
end
The code ran well until it reached 4th day. When calculating 4th day’s 1st demand, it gave me the following error:
I guessed that, since it gave the infeasible linear constraints and bounds, an error was detected on line 57. That’s why I am wondering how to solve this problem or how to check for linear constraints and bounds infeasibility?
Furthermore, is there any way to reduce the code’s execution time?
Thank you in advance Hello,
I’m making a code where it creates an optimized engine usage schedule based on engine’s reliability using genetic algorithm solver. The following is the code that I’ve made:
tic
clear
% Create arrays to store total Hour & daily result
totalHourWeekday = zeros(5,13);
result = zeros(5,13);
% Calculate the maximum engine by adding all of the engine’s status
engineStatus = ones(1,13);
maxEngine = sum(engineStatus);
% Initialize optimization problem
rel = zeros(1,13);
decision = optimproblem("ObjectiveSense","max");
engine = optimvar(‘engine’,13,’Type’,’integer’,’LowerBound’,0,’UpperBound’,1);
% Define days
for day = 1:5
% calculate maximum duration
maxDuration = 24*max(day);
% Initialize demand
for demand = 1:5
disp([‘Day: ‘,num2str(day),’ Demand: ‘,num2str(demand)])
switch demand
case 1
hourDemand = 3;
engineDemand = 9;
% Calculate reliability based on the sum between the hour
% demand & previous hour
if day == 1
timeCalc = hourDemand + totalHourWeekday(demand,:);
else
timeCalc = hourDemand + result(day-1,:);
end
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
% Set reliability as objective function
decision.Objective = relSys;
% Initialize constraint #1: engines should be equal to the
% demand
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
% Initialize constraint #2: engine’s hour should be less
% than max duration
if day == 1
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand,:) <= maxDuration;
else
decision.Constraints.durationConstraint = engine*result(day-1,:) <= maxDuration;
end
% Solve optimization problem
sol = solve(decision);
% Add the hour demand to the chosen engines
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 2
hourDemand = 2;
engineDemand = 6;
timeCalc = hourDemand + totalHourWeekday(demand-1,:);
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
decision.Objective = relSys;
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand-1,:) <= maxDuration;
sol = solve(decision);
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 3
hourDemand = 5;
engineDemand = 10;
timeCalc = hourDemand + totalHourWeekday(demand-1,:);
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
decision.Objective = relSys;
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand-1,:) <= maxDuration;
sol = solve(decision);
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 4
hourDemand = 8;
engineDemand = maxEngine-1;
timeCalc = hourDemand + totalHourWeekday(demand-1,:);
rel = exp(-(4.44*10^-5*timeCalc));
relSys = 1-((1-engine(1)*rel(1,1))*(1-engine(2)*rel(1,2))*(1-engine(3)*rel(1,3))*(1-engine(4)*rel(1,4))*(1-engine(5)*rel(1,5))*(1-engine(6)*rel(1,6))*(1-engine(7)*rel(1,7))*(1-engine(8)*rel(1,8))*(1-engine(9)*rel(1,9))*(1-engine(10)*rel(1,10))*(1-engine(11)*rel(1,11))*(1-engine(12)*rel(1,12))*(1-engine(13)*rel(1,13)));
decision.Objective = relSys;
engineMaintOrNot = sum(engine*engineStatus);
decision.Constraints.engineDemandConstraint = engineMaintOrNot == engineDemand;
decision.Constraints.durationConstraint = engine*totalHourWeekday(demand-1,:) <= maxDuration;
sol = solve(decision);
for i = 1:13
if sol.engine(i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + hourDemand;
end
end
case 5
% Special case
for i = 1:13
if engineStatus(1,i) == 1
totalHourWeekday(demand,i) = totalHourWeekday(demand,i) + 6;
end
end
end
% Add the total hour from all hour demands within the day
if day == 1
result(day,:) = sum(totalHourWeekday);
else
result(day,:) = result(day-1,:) + sum(totalHourWeekday);
end
end
end
The code ran well until it reached 4th day. When calculating 4th day’s 1st demand, it gave me the following error:
I guessed that, since it gave the infeasible linear constraints and bounds, an error was detected on line 57. That’s why I am wondering how to solve this problem or how to check for linear constraints and bounds infeasibility?
Furthermore, is there any way to reduce the code’s execution time?
Thank you in advance genetic algorithm, optimization, error MATLAB Answers — New Questions
Bit stream (Delta Sigma ADC) to Decimation filter concerns
Hi, I have a second order delta sigma modulator that I want to process the output bitstream to get the analog output
Right now I have the output bitstream (varying from 0~3.3) exported from Cadence Virtuoso
And I passed the bitstream directly to a decimation filter made using filterDesigner setting the decimation factor the same as my OSR (32)
(input analog sine wave, output bitstream after delta sigma modulator, decimated sine wave on Matlab, FFT of the previous decimated plot)
However, the sine wave looks pretty distorted, I am guessing that’s due to the export sampling frequency (the simulation is sampled at much higher rate than my clock frequency) that Cadence Virtuoso does, but I am not certain.
The question is, is there any pre-filter process I need to do in order to decimate a digital data? I couldn’t find any example that process the bitstream directly to the decimation filter.
subplot(4,1,3);
xoutfilter = OUT{:,1};
youtfilter = Hm(OUT{:,2}); %Hm being the system object of FIRDecimator
plot(youtfilter)
xlabel(‘time’);
ylabel(‘voltage’);
Thanks a lot!Hi, I have a second order delta sigma modulator that I want to process the output bitstream to get the analog output
Right now I have the output bitstream (varying from 0~3.3) exported from Cadence Virtuoso
And I passed the bitstream directly to a decimation filter made using filterDesigner setting the decimation factor the same as my OSR (32)
(input analog sine wave, output bitstream after delta sigma modulator, decimated sine wave on Matlab, FFT of the previous decimated plot)
However, the sine wave looks pretty distorted, I am guessing that’s due to the export sampling frequency (the simulation is sampled at much higher rate than my clock frequency) that Cadence Virtuoso does, but I am not certain.
The question is, is there any pre-filter process I need to do in order to decimate a digital data? I couldn’t find any example that process the bitstream directly to the decimation filter.
subplot(4,1,3);
xoutfilter = OUT{:,1};
youtfilter = Hm(OUT{:,2}); %Hm being the system object of FIRDecimator
plot(youtfilter)
xlabel(‘time’);
ylabel(‘voltage’);
Thanks a lot! Hi, I have a second order delta sigma modulator that I want to process the output bitstream to get the analog output
Right now I have the output bitstream (varying from 0~3.3) exported from Cadence Virtuoso
And I passed the bitstream directly to a decimation filter made using filterDesigner setting the decimation factor the same as my OSR (32)
(input analog sine wave, output bitstream after delta sigma modulator, decimated sine wave on Matlab, FFT of the previous decimated plot)
However, the sine wave looks pretty distorted, I am guessing that’s due to the export sampling frequency (the simulation is sampled at much higher rate than my clock frequency) that Cadence Virtuoso does, but I am not certain.
The question is, is there any pre-filter process I need to do in order to decimate a digital data? I couldn’t find any example that process the bitstream directly to the decimation filter.
subplot(4,1,3);
xoutfilter = OUT{:,1};
youtfilter = Hm(OUT{:,2}); %Hm being the system object of FIRDecimator
plot(youtfilter)
xlabel(‘time’);
ylabel(‘voltage’);
Thanks a lot! adc, decimation, bitstream, fir, filter MATLAB Answers — New Questions
Future Upgrades for Social Interaction in SPSE
Our organization currently uses SharePoint 2019 on-premise and we are interested in exploring whether future upgrades to SharePoint Server Subscription Edition (SPSE) might offer enhanced social interaction capabilities for our users. We have seen that Microsoft Viva Engage offers many valuable features for communication and collaboration, such as communities, conversations, and storylines. Unfortunately, cloud and hybrid solutions are not an option for us due to our specific IT policies.
Therefore, I would like to know if there are any plans to make similar social interaction functionalities available in SPSE. Is anyone aware of any future upgrades or expansions in this area for on-premises environments?
Any information or insight would be greatly appreciated.
Thank you in advance for your help!
Best regards,
Adam
Our organization currently uses SharePoint 2019 on-premise and we are interested in exploring whether future upgrades to SharePoint Server Subscription Edition (SPSE) might offer enhanced social interaction capabilities for our users. We have seen that Microsoft Viva Engage offers many valuable features for communication and collaboration, such as communities, conversations, and storylines. Unfortunately, cloud and hybrid solutions are not an option for us due to our specific IT policies.Therefore, I would like to know if there are any plans to make similar social interaction functionalities available in SPSE. Is anyone aware of any future upgrades or expansions in this area for on-premises environments? Any information or insight would be greatly appreciated.Thank you in advance for your help! Best regards,Adam Read More
Extract the text value
Exacting the range and readability from the instrument type How to extract itplease guide mei filter the data( please refer the other sheet) and try to extract. In this method is correct or notis it possible to extract data by using regex extract function
Exacting the range and readability from the instrument type How to extract itplease guide mei filter the data( please refer the other sheet) and try to extract. In this method is correct or notis it possible to extract data by using regex extract function Read More
data matching multiple criteria to be combined
Hello, trying to figure out how to use formulas in Excel to process the following data (top rows in table) and get to the desired result (lower rows in table). Any help is much appreciated. Thank you.
Data to be filtered and combined FruitApplesBananasBananasBananasBananasPears Pears BananasApplesApplesSale?SaleSaleRegularRegularSaleRegularRegularSaleSaleRegularNumber?100100706512040509011080 Desired Result ApplesBananasBananas Pears Apples SaleSaleRegular Regular RegularTotals210310135 90 80
Hello, trying to figure out how to use formulas in Excel to process the following data (top rows in table) and get to the desired result (lower rows in table). Any help is much appreciated. Thank you. Data to be filtered and combined FruitApplesBananasBananasBananasBananasPears Pears BananasApplesApplesSale?SaleSaleRegularRegularSaleRegularRegularSaleSaleRegularNumber?100100706512040509011080 Desired Result ApplesBananasBananas Pears Apples SaleSaleRegular Regular RegularTotals210310135 90 80 Read More