Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 GA 来最小化具有 24 个设计变量的目标函数。所有变量只有上限和下限,但最后 4 个变量有 x 和 y 轴约束。如何在 MatLab 中执行此操作由于绑定约束只能作为向量输入 GA。请帮忙。
如果您的变量依赖于 x 和 y,那么您可以尝试在给定的 x 和 y 值范围内找到变量的最小值和最大值,然后使用这些值来定义上限和下限