Community Profile

# Devdatt Thengdi

23 total contributions since 2017

View details...

Contributions in
View by

Question

Blank plot:for loop used for plotting
%function [error] = Lobo(d0, nb) clc clear all nb = 2:25; Xmat = zeros(numel(nb),1); for i=1:numel(nb) ...

2 years ago | 1 answer | 0

### 1

Question

Error: Inner Matrix dimensions must agree
%function [Qr] = Lobo(d0, L, nb) clc d0 = 0.06:0.01:0.27; Xmat1 = zeros(numel(d0),1); for i = 1:numel(d0) ...

2 years ago | 2 answers | 0

### 2

Question

Empty plot: I need to plot one variable vs Results of fmincon
clc d0 = 0.01:1; Xmat = zeros(numel(d0),5); for i=1:numel(d0) d0_actual = Ef(i); x0 = [0.08, 9....

2 years ago | 0 answers | 0

### 0

Question

Optimization Error: How do I set the algorithm of used by a function?
e.g. (R2011a) if I am using 'fmincon', I used options: options = optimoptions('fmincon','Display','iter','Algorith...

2 years ago | 1 answer | 0

### 1

Question

Fmincon: Impossible values obtained. Solver prematurely stopped due to MaxFunEvals has reached.
Observe this formula: dbc = (db./(sin(180./nb) + (pi./nb))); %Burner circle diameter db = 1.5 * tf; nb = (8:20) %Thus, ...

2 years ago | 1 answer | 0

### 1

Question

Optimization tool: Toolbox gives out a favourable output but Code for fmincon gives out 'non feasible solution'
What mistake am I making? Or at least could you tell me how to extract values from the optimization toolbox so that I can use it...

2 years ago | 0 answers | 0

### 0

Question

fplot: Attempted to access x(2); index out of bounds because numel(x)=1.
Consider plot function. B = arrayfun(@(x)Lobo(x(1), x(2), x(3), x(4), x(5), x(6)), x(1), 'un',0); fplot(B, [0.01 0.2]); ...

2 years ago | 1 answer | 0

### 1

Question

Optimization: Function taking a variable value from out of the bounds
(Files attached) x0 = abs([0.01, 1, 283.15, 8, 10]); %options = optimset('PlotFcns',@optimplotfval); fitnessfcn = @...

2 years ago | 0 answers | 0

### 0

Question

How to use a single value from a multi-variable optimization result?
I used this function to optimize a 5 variable function: [X, fval] = fmincon(fitnessfcn, x0, [], [], [], [], [0.01,1,300 + ...

2 years ago | 0 answers | 0

### 0

Question

gamultiobj: How do I minimize one function and maximize the other
Given: function 2 is dependent upon function 1.

2 years ago | 1 answer | 0

### 1

Question

2 Errors: Conversion to double from function_handle is not possible and attempt to reference field of non-structure array.
What mistake am I making here? clc x0 = [0.01, 1, 10 + 273.15, 8, 1]; options = optimset('PlotFcns',@optimplotfval...

2 years ago | 0 answers | 0

### 0

Question

Multi-variable fminsearch: Not enough input arguments
I am getting 'Not enough input arguments' as result. Need help. Function: function qout = Lobo(d0, L, Tg, nb, uo) clc...

2 years ago | 1 answer | 0

### 1

Question

Optimization: Need to to optimize qr
I need to optimize qr wrt to do, L, Tg, nb, uo. Do I need to substitute all variables into the formula for qr or is there an...

2 years ago | 1 answer | 0

### 1

Optmization: Need to optimize Tg in the following code w.r.t. dtc.
*So, this is what i did:* function [dtc,Tg] = Lobo(~) ctc = 0.3048; %ctc in m dtc= ...

2 years ago | 0

Question

Optmization: Need to optimize Tg in the following code w.r.t. dtc.
Ti = 251.9 + 273.15; %Fluid in degK T0 = 386.1 + 273.15; %Fluid/gas out degK cpl = 0.32; %Cp fluid KJ/kgdegK LHV = 41...

2 years ago | 2 answers | 0

### 2

Question

Plotting problem: The results and plots are not consistent with the input.
I am optimizing diff over d0. over the range of 0.01 to 0.2m. But, it is plotting diff vs d0 over single value of 5.157e+3. Plea...

2 years ago | 0 answers | 0

### 0

Question

I am getting an empty plot.
x1 = 0.01; x2 = 0.2; d0min = fminbnd(@Sold0, x1, x2); d0min disp(d0min); d0 = 0.01:...

2 years ago | 1 answer | 0

### 1

Question

Point out a specific value in a plot.
Following is the code to minimize a Sol over Q. The minimized value is obtained at Qmin. I want to plot Qmin on the plot for Q v...

2 years ago | 1 answer | 0

### 1

Single objective function, single variable optimization using GA: Not enough input arguments
for d0 = 0.05:0.01:0.2 %Q = 5900000:10000:8800000; %diff = (Q) > qr - 1000; obj = @(Q) Solution(Q) - 1000 - Q; ...

2 years ago | 0

Question

Single objective function, single variable optimization using GA: Not enough input arguments
Design of a Furnace. Function File function qr = Solution(Q) THD = 3773.09; %Total heat duty Gcal/h %Target f...

2 years ago | 2 answers | 0

### 2

Question

Two variable Optimization: Variables is defined in a tertiary equation. Design of a Furnace.
function qr = Sol(~) %Assume Q and d0 Q = 7000000; %Kcal/m^2degC d0 = 0.033; %Tube diameter m THD = 3773.09; %Tota...

2 years ago | 1 answer | 0

### 1

Question

Beginner: How to apply iterative method to the code? Iteration of one value over two variables simultaneously.
I need to iterate the value of qr over d0 (diameter of tubes) and Q (Assumed flux) The final qr should be in the range of 590000...

2 years ago | 0 answers | 0