Question

How to generate all possible connection with graph theory function

A=[0 1 1 1;0 0 1 1;0 1 0 1;0 1 1 0]; G=digraph(A); plot(G) I want to store/generate all possible connection like 1-2-3-4,1-3-...

7 months ago | 1 answer | 0

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

9 months ago | 2 answers | 0

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

10 months ago | 1 answer | 0

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

10 months ago | 0 answers | 0

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

11 months ago | 1 answer | 0

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

11 months ago | 0 answers | 0

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

11 months ago | 1 answer | 0

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

12 months ago | 1 answer | 0

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

12 months ago | 1 answer | 0

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

12 months ago | 1 answer | 0

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

12 months ago | 1 answer | 0

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=[]; ...

12 months ago | 0 answers | 0

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

12 months ago | 1 answer | 0

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

1 year ago | 1 answer | 0

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

1 year ago | 1 answer | 0

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

1 year ago | 1 answer | 0

Question

visual studio fortran to matlab code

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

1 year ago | 0 answers | 0