photo

Roshni Khetan


Active since 2017

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
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...

6 years ago | 0

Question


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...

6 years ago | 4 answers | 0

4

answers

Question


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....

6 years ago | 1 answer | 0

1

answer

Question


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...

6 years ago | 0 answers | 0

0

answers

Question


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;...

7 years ago | 1 answer | 0

1

answer

Question


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...

7 years ago | 0 answers | 0

0

answers

Question


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...

7 years ago | 0 answers | 0

0

answers

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

7 years ago | 0

Question


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...

7 years ago | 1 answer | 0

1

answer

Question


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...

7 years ago | 1 answer | 0

1

answer

Question


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 ...

7 years ago | 1 answer | 0

1

answer

Question


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...

7 years ago | 0 answers | 0

0

answers

Question


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...

7 years ago | 1 answer | 0

1

answer