Question

Optimisation error_constraint

Dear all, When i use constraint which is defined as output in the function , no error, but when i use input variables in func...

6 meses ago | 1 answer | 0

Question

Matrix subtraction makes the model too slow

The below code makes the model too slow: Data(i,:)=Data1(i,:)-Data2(i,:); is there any alternative way to solve this ?

6 meses ago | 1 answer | 0

Question

how can i avoid Nan in matlab expression and return 0

The below three expression gives three different values, and can someone advice me how can i avoid Nan values for 0 input and ...

6 meses ago | 5 answers | 0

Question

how to do conditional statements using optimisation variables?

hi all, how can i perform logical comparison using optimisation variable ? I have tried this below code for optimisation using ...

6 meses ago | 1 answer | 0

Question

how can i create sliding window matrix for a single column matrix

HI , I have a single column matrix of a solar forecasted output.How can i create a sliding window of the required size of the ...

6 meses ago | 1 answer | 0

Question

after initialising a diesel machine, does its power remains constant at initialised value in matlab.

after initialising a diesel machine, does its power remains constant at initialised value in matlab. I have initialised diesel...

6 meses ago | 0 answers | 0

Question

Diesel generator Model in simpowersystem

I have initialised diesel generator to a load of 2.45 MW and after initialisation , my diesel generator produces excess power if...

6 meses ago | 0 answers | 0

Question

Optimization problem Matlab _optimisation vector

What is the importance of optimisation horizon in optim prob usgae?How input parameters dimension can be set? Kindly advice

6 meses ago | 0 answers | 0

Question

Optimization problem _input dimension

While giving inputs to optimisation problem, how to set matrix dimensions of inputs like solar , load etc .i have 25 x 2 matrix ...

6 meses ago | 0 answers | 0

Question

Matlab optimproblem , optimvar

Hi, I am getting errors like this, when I use optimproblem and optimvar. Function 'optimproblem' not supported for code gener...

6 meses ago | 1 answer | 0

Question

Matlab function block error

Hi i am getting error for using matlab simulink function block ### Simulink cache artifacts for 'filename' were created in 'f...

6 meses ago | 0 answers | 1

Question

Undefined operator './' for input arguments of type 'cell'.

Hi , i am using the below command and getting the error: date_num2 = datenum(testdates)+table2array(Data(1:end,2))./24; ...

6 meses ago | 0 answers | 0

Question

importance of weights in optimization

Hi, This code written below is taken from matlab example , https://ww2.mathworks.cn/matlabcentral/fileexchange/73139-microgri...

6 meses ago | 0 answers | 0

Question

matlab optimisation problem _ constraint

Hi, this is a code from matlab optimisation problem given in the below link https://www.mathworks.com/matlabcentral/filee...

6 meses ago | 1 answer | 0

Question

Coefficient of determination , R2 from actual and predicted data

How can i find the Coefficient of determination , R2 from predicted and actual data ? How can i write matlab code for that

6 meses ago | 1 answer | 0

Question

Algebraic loop problem _Simulink

hi Kindly advice how can i solve algebraic loop problem. Simulink cannot solve the algebraic loop containing 'march0604/Sub...

7 meses ago | 0 answers | 0

Question

how can i convert Principal component analysis(PCA) data back to original data ?

Hi all, i used the below code to reduce dimension suing PCA in steps, and how can i convert the output back to original data s...

7 meses ago | 1 answer | 0

Question

Losses in forecasting _cosine similarity class ,mean square logarithmic error , and huber class

How can i write the code for calculating cosine similarity class ,mean square logarithmic error , and huber class in matlab cod...

7 meses ago | 0 answers | 0

Question

initial SoC values _Matlab example

Hi, In the Matlab example https://www.mathworks.com/help/physmod/sps/ug/24-hour-simulation-of-a-vehicle-to-grid-v2g-system.html...

7 meses ago | 0 answers | 0

Question

Unable to change the date in .fig

Hi , i use this below code and not able to change the date from Dec 31 1899. .Fig image is attached.I would like to change the d...

8 meses ago | 1 answer | 0

Question

Matlab example file _SoC calculation

In the matlab example, https://www.mathworks.com/help/physmod/sps/ug/24-hour-simulation-of-a-vehicle-to-grid-v2g-system.html...

8 meses ago | 0 answers | 0

Question

Matlab look up table

Hi , i want to give the data of 50 vehicle's SoC (%) to look up table in simulink instead of varying 24 values of one SoC over...

8 meses ago | 0 answers | 0

Question

Matlab LOOK up Table

I have 50 data points and i have imported these 50 data points from matlab to look up table,and has given 50 breakpoints.i am si...

8 meses ago | 0 answers | 0

Question

What is the difference between Optimproblem and linprog

Please help, The below syntax creates a linear optimisation problem ? prob = optimproblem What is the difference of this abo...

8 meses ago | 2 answers | 0

Question

How battery energy is calculated in Microgrid Energy Management System (EMS) using Optimization

Can some one please explain how the battery energy is calcuated in the matlab example file, https://www.mathworks.com/matlabcen...

8 meses ago | 1 answer | 0

Question

Plot data against time

Hi, Kindly help to plot this workspace data , first column is formatted date and secnd column data against the date:Original da...

8 meses ago | 1 answer | 0

Question

how can I initialize two diesel generators in parallel in MATLAB ?

As detailed in the link below:, can i connect two diesel generators connected in parallel sharing load?What chaneg should i make...

9 meses ago | 0 answers | 0

Question

How can i plot two columns in different colors in MATLAB

can someone suggest me how to plot 2nd and 3 rd column in x axis in differnt colors as scatter plot against the 1st column...

9 meses ago | 1 answer | 0

Question

Convert date from number to format in matllab

I have original time and date format as mentioned below: 2/17/2020 9:48:18 AM I did forecasting using this , and after foreca...

9 meses ago | 1 answer | 0

Question

NPN Bipolar Transistor Characteristics

In the matlab example , NPN Bipolar Transistor Characteristics https://www.mathworks.com/help/physmod/sps/ug/npn-bipolar-trans...

9 meses ago | 1 answer | 0