Multiple simultaneous discrete optimization problems
Mostrar comentarios más antiguos
Dear all,
my question is based off of this example:
but with the following change.
In the example we had to optimize the volume of one beam for the given P, L, σmax, δmax.
What I would like to do is to optimize the volume (same x(i)s - i=1:10) for three different beams having different P, L, σmax, δmax.
Then I would like a report showing the smallest volume if I have to use only one, two, three, etc. beams.
Do you think it's doable?
Thanks
3 comentarios
John D'Errico
el 16 de Ag. de 2015
Of course it is doable!
WRITE THE CODE. Is there a reason why a loop is a bad thing?
for i = 1:3
solve problem i
end
You cannot do anything until you start writing though.
Konstantinos Belivanis
el 18 de Ag. de 2015
James Wiken
el 18 de Ag. de 2015
A loop should work fine with functions. I understand the number of variables changes based on the number of beams you are optimizing for. You can write functions that can take a varying number of inputs to handle this. To accomplish this, reference the documentation links for 'varargin' and 'nargin' below:
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Surrogate Optimization en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!