Community Profile

photo

민제 강


Last seen: 1 day ago Active since 2021

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


How can I put Excel data into the function?
function [y] = rosensc(xx) xx = [x1 x2 x3 x4]; for ii = 1:4 xxbar(ii) = 15*xx(ii) - 5; end sum = 0; for ii = 1:3...

14 days ago | 1 answer | 0

1

answer

Question


How can I get the Y value at once?
function Y = objectivefunction (X) x1 = ; x2 = ; x3 = ; x4 = ; Y = x1*x4*[x1+x2+x3]+x3; end There are 20 x1, x...

15 days ago | 1 answer | 0

1

answer

Question


How do I get some sampling points from a 4 dimentional function at LHS(Latin Hypercube Sampling)?
function scores = rosenbrockfcn(x) scores = 0; n = size(x, 2); assert(n >= 1, 'Given input X cannot be empty'); ...

16 days ago | 0 answers | 0

0

answers

Question


How can I use GA(Genetic Algorithm) with values of x1, x2, f(x1, x2)?
A function(@objective_function) is required when using most GA. For example [Xr,fval,exitflag,output,population,scores] = ga(@o...

21 days ago | 0 answers | 0

0

answers

Question


How do I solve this problem at the optimization toolbox?
function Y = objective_function(X) x1=X(1,1); x2=X(1,2); p00 = -9.601e+04; p10 = -1031; p01 = ...

27 days ago | 1 answer | 0

1

answer

Question


How do I write the code for 3 dimention rosenbrock function?
function Y = objectivefunction (X) x1 = -7.86586; x2 = -1.20733; Y = 100*(x2-x1^2)^2 + (x1-1)^2; end This is a 2...

30 days ago | 0 answers | 0

0

answers

Question


How do I make a contour?
data = readtable('kriging_branin_20'); krin = readtable('LHS_branin_20.xlsx'); ux1 = unique(data.x1); nx1 = length(ux1); X1 ...

1 month ago | 0 answers | 0

0

answers

Question


How do I write the LHS code?
I want to get points through the LHS within the Rosenbrock function. f(x)=100*(x2-x1^2)^2 + (1-x1)^2 x1^2 + x2^2 <= 1 Please ...

2 months ago | 0 answers | 0

0

answers

Question


How do I plot points on a contour?
data = readtable('Sample.xlsx'); ux1 = unique(data.x1); nx1 = length(ux1); X1 = reshape(data.x1, [], nx1); X2 = reshape(data...

2 months ago | 1 answer | 0

1

answer

Question


How do I draw contour?
I want to draw a contour for the difference between Y and kriging in Sample.xlsx Red if the error is big. Blue if the error i...

2 months ago | 1 answer | 0

1

answer

Question


How do I put it in?
x1 = [-4.2 -2.6 -1 0.6 2.2 3.8 5.4 7 8.6] x2 = [0.8 2.4 4 5.6 7.2 8.8 10.4 12 13.6] function Y = objectivefunction (X) x1 ...

2 months ago | 1 answer | 0

1

answer

Question


How do I put it in?
x1 = [-4.2 -2.6 -1 0.6 2.2 3.8 5.4 7 8.6] x2 = [0.8 2.4 4 5.6 7.2 8.8 10.4 12 13.6] predictor([x1 x2], dmodel) [-4.2 0.8], [-...

2 months ago | 2 answers | 0

2

answers

Question


How do I use DACE Toolbox?
function [y, or1, or2, dmse] = predictor(x, dmodel) %PREDICTOR Predictor for y(x) using the given DACE model. % % Call: y...

3 months ago | 0 answers | 0

0

answers

Question


How can I make a reaction surface using kriging? Also, how can I get a value other than the data value?
How can I make a reaction surface using kriging? Also, how can I get a value other than the data value? x1 = [4.158236141 6.153...

3 months ago | 0 answers | 0

0

answers

Question


How do I use LHS(Latin Hypercube Sampling)?
x1=[-5,10] x2=[0,15] Branin function= @(x) (x(:,2)-5.1*x(:,1).^2./(4*pi^2)+5*x(:,1)./pi-6).^2 + 10*(1-1/(8*pi))*cos(x(:,1))+...

3 months ago | 1 answer | 0

1

answer

Question


How do I draw the same graph as the picture?
x1 = [4.158236141 6.153599506 -4.535940798 7.598349019 1.546377884 -1.345068203 9.996482015 -0.173832303 -4.963945249 7.60191503...

3 months ago | 1 answer | 0

1

answer

Question


How do you get the value for any point on the response plane?
Branin function I used the Latin Hypercube design. x1 = [4.158236141 6.153599506 -4.535940798 7.598349019 1.546377884 -1.34506...

3 months ago | 1 answer | 0

1

answer