Setup discrete values for decision variables in optimization problems

조회 수: 10 (최근 30일)
Stephan
Stephan 2018년 5월 16일
댓글: Stephan 2018년 5월 16일
Hi,
the design of assemblies sometimes raises the question of whether, e.g. a connection should be made with less large screws or several small screws. The result of a certain connection strength to be achieved can be achieved with many different variants. This example can be transferred to many similar questions. Another example would be the planning of structures with larger distances between a few support columns and larger cross sections or vice versa.
As an optimization target, then the corresponding cost function can be minimized in such cases, e.g. the lowest manufacturing cost or the greatest possible gain in the production of products.
In order to actually make economic sense in these issues, it is usually necessary to resort to standard parts or standardized dimensions and semi-finished products. For example, it will not make sense to use screws that are custom made or to use sheet thicknesses that are not produced by default.
Now my question regarding the application in MATLAB:
How can I specify the decision variables during the problem deifinition in a way so that for example for screw joints only diameters are permissible that are elements of a defined quantity:
x(ScrewDiameter) is element from {6, 8, 10, 12, 16, 24}
A feasible solution satisfies this constraint. An optimal solution would satisfy this constrint with minimal cost.
In that case, the int-constraint would not help me, I think. How can this boundary condition the optimization problem be meaningfully defined in these cases?
Best regards
Stephan

채택된 답변

Alan Weiss
Alan Weiss 2018년 5월 16일
There is an example like this in Global Optimization Toolbox; see the section "Add Discrete Non-Integer Variable Constraints."
If your problem is otherwise linear (linear objective, linear constraints) then you can use the intlinprog solver. See Solver-Based Optimization. If you have a recent version of MATLAB, see Problem-Based Optimization.
Alan Weiss
MATLAB mathematical toolbox documentation

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by