Using optimization Toolbox without Objective functions, only set of points

17 次查看(过去 30 天)
I have 4 or 5 input parameters and 1 or 2 output parameters and these inputs and outputs are only points and there is no function, e.g. 3 inputs and 2 outputs, like 10,6,26 inputs and 0.11 , 0.16 as two outputs and in total I have 10 of these set of points (each set has 3 inputs and 2 outputs) and also a simple constraint for each parameter like (a < x1,x2,x3 < b) and now I want to find a combination of these 3 inputs that the sum of my outputs would be less than 0.1, and I want to use e.g. Genetic Algorithm, so it is a possibility that I have several answers or sets of 3 inputs, and that is ok (acceptable) in my case. and Basiclly it is an improvement instead of optimization.
  2 个评论
omid rastkhiz paydar
It is exactly like this case @Chaitanya Sanghavi
I have two contraint variables, lets call them d -diameter and Youngs modulus - E. (d, E are constraint within certain limits)
I want to minimize the stress- "S" induced in the structure depending on "d" and "E".I do not have a direct relationship of S with "d" and "E". I have a big computational model with many functions and scripts. For a specific set of d and E it returns me S.
function [S] = optimize(d,E)
...
...
... FEM model (quite big)....
...
S = 10log10(Incident Load (d,E)/Transmitted Load(d,E));
% Incident Load depends on d,E but this relationship is not known and too complicated to know.
% Transmitted Load depends on d,E but this relationship is not known and too complicated to know.
end
Walter Roberson
Walter Roberson 2021-2-16
If you want to minimize stress, and stress is returned by that 10*log10 calculation, then do that 10*log10 calculation and return that.

请先登录,再进行评论。

回答(1 个)

Matt J
Matt J 2021-2-15
编辑:Matt J 2021-2-15
in total I have 10 of these set of points
You are minimizing over a small, finite set of things. Just use min().
  11 个评论
Walter Roberson
Walter Roberson 2021-2-16
Sum of squares of errors is a scalar that can be returned, and that effectively is the objective function.
Objective functions do not need to be mathematical formulas.
(However, the minimizers might not work correctly if whatever is calculated is not continuous in the parameters.)
If the call to ANSYS is "expensive" then you should have a look at surrogate optimization.
Pedro Pesante Castro
Hi guys,
Omid, how goes your work? can you provide your code file? I'm very interested in this topic.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Direct Search 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by