photo

Roshni Khetan


Aktiv seit 2017

Followers: 0   Following: 0

Statistik

  • First Answer

Abzeichen anzeigen

Feeds

Anzeigen nach

Beantwortet
Fsolve stops fsolve stopped because the sum of squared function values, r, has gradient with relative norm 0; this is less than options.OptimalityTolerance
Here is the function which I am trying to tune %Inputs for tuning function [o] = react_Coil_tuning_rev1(x) T_w...

mehr als 6 Jahre vor | 0

Beantwortet
Fsolve stops fsolve stopped because the sum of squared function values, r, has gradient with relative norm 0; this is less than options.OptimalityTolerance
sorry that was a typo on this forum - fun = @reactCoil_tuning_rev1

mehr als 6 Jahre vor | 0

Frage


Fsolve stops fsolve stopped because the sum of squared function values, r, has gradient with relative norm 0; this is less than options.OptimalityTolerance
Fsolve not converging: FUNCTION: %%Defines all inputs and then goes into a for loop with anonymous functions for the unk...

mehr als 6 Jahre vor | 4 Antworten | 0

4

Antworten

Frage


How to pass anonymous handle in a for loop?
function [o] = testScript(x) input1 = [2,3,4,5,6,7,8]; input2 = [3,9,1.3,4,0.9,1.1,1.2]; output = [2.5071,11.5204,1....

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I tune an existing model to fit two correlations with multiple (>2) independent variables?
function(T_out1, P_out1, T_out2,P_out2) = thermal(T_in1, P_in1, T_in2, P_in2) k1 = fn(T_in1, P_in1, T_in2,P_in2) and of the f...

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


how to solve this error: FSOLVE requires all values returned by functions to be of data type double?
function E = valvecoeff(x) % cv_249 = x(1); % cv_251 = x(2); m_w1 = 3.5; m_w2 = 1.5; T_water_out_DIC1 = 80+273;...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how to solve error of subscripted dimension mismatch?
% the code works for one iteration and stops at column 27 for the second iteration T_air_DIC1 = []; i =1; T_air_DIC...

etwa 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


how to optimize 2 functions for a set point output value using fsolve?
% basically, I have set values for the outputs of two functions named 'AC_LPCA', and 'DIC1' below. I want the %correspondin...

etwa 7 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
Function program to optimize multiple variables of an equation
did you find a solution? I am looking for a very similar thing

etwa 7 Jahre vor | 0

Frage


how to optimize an input variable to a function to obtain a set point output variable?
T_in_IC1 = 35; T_in_DIC = 80; T_in_a = 120; [T_out_IC1,T_a_out_IC1] = IC1(m_w1,T_in_IC1,T_in_a); T_a_in_IC2 = 23*T...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to extract data with a higher resolution/lesser delta x from a figure ?
I want to have series y at corresponding series x from the figure, and this series x might not be the same while creating the o...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Undefined function 'power' for input arguments of type 'function_handle'
%SCRIPT [M2,H] = B249VALVEcurve() cv_249= [M2]; [M,H] = B251valveperfcurve() cv_251 = [M]; % a vector for opening ...

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


FZERO cannot continue because user-supplied function_handle ==> @(m_w2)(PD_2(m_w2)-PD_1(m_w2)) failed with the error below. Index exceeds matrix dimensions.
m_tot = 8; % in kg/sec [M2,H] = B249VALVEcurve() C_v249= [M2]; [M,H] = B251valveperfcurve() C_v251 = [M];% a vector for ope...

mehr als 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Undefined function 'minus' for input arguments of type 'function_handle'.
m_tot = 8; % in kg/sec [M2,H] = B249VALVEcurve() C_v249= [M2]; [M,H] = B251valveperfcurve() C_v251 = [M];% a vecto...

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort