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 算法做一个优化问题。决策变量的数量为 3。即 3 x 1 矩阵。但第一个元素始终为 0。将此作为参考我想优化其他两个变量。我怎样才能完成这项任务?
然后只需使用
lb = [0,0,0]; ub = [0,8,8]; IntCon = [0 2 3];