Community Profile

photo

RAHUL KUMAR


16 total contributions since 2019

RAHUL KUMAR's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


how to use passing by value and passing by reference
Basically i have many variables in my code , so i want to use in my function just passing by value and reference. Can anybody te...

1 month ago | 2 answers | 0

2

answers

Question


how to call struct array in subroutine
i want to call these value in my subroutine(function). so how to write a code Air.Tin=303; Air.Tout=310; Air.Pin=101325; Ai...

1 month ago | 1 answer | 0

1

answer

Question


how to plot non-quadratic function
x0=[2,0]; fun=@(x) x(1)^3-16*x(1)+2*x(2)-3*x(2)^2 %this is my objective function x = fminsearch(fun,x0) contour(fun,[-5 5]) ...

2 months ago | 0 answers | 0

0

answers

Question


If we have non-linear constraint can we use "quadprog"
I have non-linear function and linear constraint so we can use "quadprog" algorithm.so my question is if i have non-linear objec...

3 months ago | 1 answer | 0

1

answer

Question


how we know my optimized result is correct
I want to know how can i check my optimized result is correct,yeah i know constriants and objective function but i don't know my...

3 months ago | 0 answers | 0

0

answers

Question


fmincon works but GA won't work
when i use fmincon it gives some optimized result but when i use GA it shows some like ''constraint not satisfied''.In both case...

3 months ago | 1 answer | 0

1

answer

Question


how to plot 3-d objective function with my two variables with the fmincon algorithm use
i am using surfc command but how to implent to it give iterative result vary with variables.Can any body help xo=[0.001,0.005];...

4 months ago | 1 answer | 0

1

answer

Question


unable to plot 3-d surface with fmincon
i want to plot 3-D surface ,basically i have two variables (intialguess value) plot with my objective function(fitnessfun).which...

4 months ago | 1 answer | 0

1

answer

Question


surface Z contain more than one row or column
x(1)=0.0001:0.1:0.01; x(2)=0.003:0.1:0.08; [X Y]=meshgrid(x(1),x(2)); rho_ss=8000; rho_cop=8960; D_io=0.0014;D_oo=0.0075; ...

4 months ago | 1 answer | 0

1

answer

Question


how to plot objective function with variables
xo=[0.0011,0.0049,0.3]; % assumptions %[Q]=heatload1_new(xo) %nvars=3; A=[]; b=[]; Aeq=[]; beq=[]; lb=[0.001,0.002,0.01]...

4 months ago | 1 answer | 0

1

answer

Question


I am getting same intial guess value in fmincon
this is my fitness function clear all close all xo=[0.0011,0.0049,0.36]; % assumptions %nvars=5; A=[]; b=[]; Aeq=[]; ...

4 months ago | 0 answers | 0

0

answers

Question


optimization error ,when i used fmincon for three variables,getting same intial guess value in result
clear all close all xo=[0.0011,0.0049,0.36]; % assumptions %nvars=5; A=[]; b=[]; Aeq=[]; beq=[]; lb=[0.001,0.002,0.0...

4 months ago | 1 answer | 0

1

answer

Question


WHEN I DO INVERSE OF MY MATRIX IT GIVE VERY LARGE VALUE AND MULTIPLICATION OF (inv(H).*J) GIVE INCORRECT VALUE. can you resolve it
X=[.0014;.0075;.3]; rho_ss=8000; rho_cop=8960; % defined thickness thick_i=.0004; thick_o=.00135; D_i=X(1);D_o=X(2);L=...

4 months ago | 1 answer | 0

1

answer

Question


Error in newton rapshon problem. My error in iteration line (err(i))=abs(Y-Yold)
X=[.0014;.0075;.3]; maxiter=100; tolX=.000001; Y=X; Yold=X; rho_ss=8000; rho_cop=8960; % defined thickness thick_i=.0004...

4 months ago | 1 answer | 0

1

answer

Question


USING newton method optimization (getting error in 'xx(1)=x') .
rho_ss=8000; rho_cop=8960; x=[.001;.0014;.005;.007;.3]; D_i=x(1);D_io=x(2);D_o=x(3);D_oo=x(4);L=x(5); wi=rho_ss*pi*D_io*(D...

4 months ago | 1 answer | 0

1

answer

Question


visual studio fortran to matlab code
i have fortran code but i want to run into matlab . urgently help me

5 months ago | 0 answers | 0

0

answers