0
我知道這裏有幾個主題,但是他們都沒有回答我的問題。 我的問題如下。如果我用這個多目標功能:用MATLAB中的優化工具箱使用遺傳算法求解多目標函數
function y = GAMultiobjectiveFunction(x)
q=x(1);
d=x(2);
y(1) = -(rev(q) - cost(q, d)); %by minimizing we will make -(profit) to be minimum,
%meaning that +(profit) will be the maximum
y(2) = 3*(power(q, 1.4))*((log(power(q,3)*d))/(d+10))+(rand*30);
end
在優化工具箱,我想利用遺傳算法的方法來解決這個問題,我必須使用「gamultiobj」選項?我希望最小化兩個方程的參數。我如何知道它會查找使這些方程達到最小值的參數?我無法在任何地方指定它。
非常感謝你, 揚