| 2 | 1/1 | 返回列表 |
| 查看: 879 | 回復: 1 | |||
M.bySong鐵蟲 (小有名氣)
|
[求助]
1stopt高版本代跑,很急,先謝謝大神們了! 已有1人參與
|
|
大神上午好,最近碰到一個多目標優(yōu)化的問題,想用理想點法與平方和加權法求多目標最優(yōu)。三個目標函數(shù),分別跑出最優(yōu)值以后,加權求解。希望大神能夠幫忙代跑一下,不勝感激。就這點金幣了,完成后加v有大紅包,現(xiàn)在很急,先謝謝大神們了。! 求第一個目標目標函數(shù)最優(yōu)值op1: parameter x1=[6422,10000],x2=[0,6422],x3=[0,6422],h1=[0,2280],h2=[1600,10000],h3=[1241,10000] ; minfunction 6422*600000*sqrt((h1-h3)^2+(x1-x3)^2)*(x1-x2)/((-x3*h3+x1*h1)*(x1-x2)-(-x2*h3+x1*h2)*(x1-x3)); x1-10000<=0 x3-x1<0; x2-x3<0; h2-h1<0; h3-h2<0; h3-x2<0; sqrt((x1-x3)^2+(h1-h3)^2)-3000<=0; -sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h<0; sqrt((x3-h3)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)+h1)^2)-8150<=0; (sqrt((x3-h3)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)+h1)^2)-sqrt((x1-x3)^2+(h1-h3)^2))/(2*sqrt((x1-x3)^2+(h1-h3)^2))-0.8<=0; x1-(sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)-6000<=0; -x1+(sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)<=0; sqrt((x1-x2)^2+(-h3+h2)^2)-7000<0; -6422*600000*sqrt((h1-h3)^2+(x1-x3)^2)*(x1-x2)/((-x3*h3+x1*h1)*(x1-x2)-(-x2*h3+x1*h2)*(x1-x3))<0; ——————————————————————————————————————————————————————————————————————————————————第2個目標目標函數(shù)最優(yōu)值op2: parameter x1=[6422,10000],x2=[0,6422],x3=[0,6422],h1=[0,2280],h2=[1600,10000],h3=[1241,10000] ; minfunction sqrt((x1-x2)^2+(-h3+h2)^2); x1-10000<=0 x3-x1<0; x2-x3<0; h2-h1<0; h3-h2<0; h3-x2<0; sqrt((x1-x3)^2+(h1-h3)^2)-3000<=0; //收攏長度 -sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h<0; //H sqrt((x3-h3)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)+h1)^2)-8150<=0; //展開長度 (sqrt((x3-h3)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)+h1)^2)-sqrt((x1-x3)^2+(h1-h3)^2))/(2*sqrt((x1-x3)^2+(h1-h3)^2))-0.8<=0; //導向比 x1-(sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)-6000<=0; //導向行程 -x1+(sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)<=0; //導向行程 sqrt((x1-x2)^2+(-h3+h2)^2)-7000<0; //拉桿長度 -6422*600000*sqrt((h1-h3)^2+(x1-x3)^2)*(x1-x2)/((-x3*h3+x1*h1)*(x1-x2)-(-x2*h3+x1*h2)*(x1-x3))<0; ——————————————————————————————————————————————————————————————————————————————————第3個目標目標函數(shù)最優(yōu)值op3: parameter x1=[6422,10000],x2=[0,6422],x3=[0,6422],h1=[0,2280],h2=[1600,10000],h3=[1241,10000] ; minfunction sqrt((h3-269)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)-6422)^2); x1-10000<=0 x3-x1<0; x2-x3<0; h2-h1<0; h3-h2<0; h3-x2<0; sqrt((x1-x3)^2+(h1-h3)^2)-3000<=0; //收攏長度 -sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h<0; //H sqrt((x3-h3)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)+h1)^2)-8150<=0; //展開長度 (sqrt((x3-h3)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)+h1)^2)-sqrt((x1-x3)^2+(h1-h3)^2))/(2*sqrt((x1-x3)^2+(h1-h3)^2))-0.8<=0; //導向比 x1-(sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)-6000<=0; //導向行程 -x1+(sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)<=0; //導向行程 sqrt((x1-x2)^2+(-h3+h2)^2)-7000<0; //拉桿長度 -6422*600000*sqrt((h1-h3)^2+(x1-x3)^2)*(x1-x2)/((-x3*h3+x1*h1)*(x1-x2)-(-x2*h3+x1*h2)*(x1-x3))<0; ———————————————————————————————————————————————————————————————————————— 將下面代碼中的op1,op2,op3替換為上面計算出的結果,求多目標加權結果 parameter x1=[6422,10000],x2=[0,6422],x3=[0,6422],h1=[0,2280],h2=[1600,10000],h3=[1241,10000] ; ConstStr f1=6422*600000*sqrt((h1-h3)^2+(x1-x3)^2)*(x1-x2)/((-x3*h3+x1*h1)*(x1-x2)-(-x2*h3+x1*h2)*(x1-x3)); conststr f2=minfunction sqrt((x1-x2)^2+(-h3+h2)^2); conststr f3=sqrt((h3-269)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)-6422)^2); minfunction ((f1-op1)/op1)^2+((f2-op2)/op2)^2+((f3-op3)/op3)^2; //minfunction 6422*600000*sqrt((h1-h3)^2+(x1-x3)^2)*(x1-x2)/((-x3*h3+x1*h1)*(x1-x2)-(-x2*h3+x1*h2)*(x1-x3)); //minfunction sqrt((x1-x2)^2+(-h3+h2)^2); //minfunction sqrt((h3-269)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)-6422)^2); x1-10000<=0 x3-x1<0; x2-x3<0; h2-h1<0; h3-h2<0; h3-x2<0; sqrt((x1-x3)^2+(h1-h3)^2)-3000<=0; //收攏長度 -sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h<0; //H sqrt((x3-h3)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)+h1)^2)-8150<=0; //展開長度 (sqrt((x3-h3)^2+((sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)+h1)^2)-sqrt((x1-x3)^2+(h1-h3)^2))/(2*sqrt((x1-x3)^2+(h1-h3)^2))-0.8<=0; //導向比 x1-(sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)-6000<=0; //導向行程 -x1+(sqrt((x1-x2)^2+(h2-h3)^2-(x2-h3)^2)-h2)<=0; //導向行程 sqrt((x1-x2)^2+(-h3+h2)^2)-7000<0; //拉桿長度 -6422*600000*sqrt((h1-h3)^2+(x1-x3)^2)*(x1-x2)/((-x3*h3+x1*h1)*(x1-x2)-(-x2*h3+x1*h2)*(x1-x3))<0; |
版主 (知名作家)
|
目標函數(shù)值(最小): 1.87232999181561 x1: 6422 x2: 2282.96873670372 x3: 4485.76040752828 h1: 2279.99154310903 h2: 1600.03227522495 h3: 1241.37911564834 h: -1006.24586353898 |

| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 311求調劑 +7 | zchqwer 2026-03-10 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 0832食品科學與工程293調劑 +4 | 東東不東 2026-03-07 | 4/200 |
|
|
[考研] 283求調劑 +3 | 小樓。 2026-03-12 | 6/300 |
|
|
[考研] 化工學碩306求調劑 +7 | 42838695 2026-03-12 | 7/350 |
|
|
[考研] (081700)化學工程與技術-298分求調劑 +9 | 11啦啦啦 2026-03-11 | 9/450 |
|
|
[考研] 302求調劑 +3 | 負心者當誅 2026-03-11 | 3/150 |
|
|
[考研] 274求調劑0856材料化工 +9 | z2839474511 2026-03-11 | 10/500 |
|
|
[考研] 0703化學一志愿211 總分320求調劑 +3 | 瑪卡巴卡啊哈 2026-03-11 | 3/150 |
|
|
[考研] 哈工大材料324求調劑 +6 | 閆旭東 2026-03-10 | 8/400 |
|
|
[考研] 313分生物學求調劑 +5 | Yyt楊1 2026-03-09 | 7/350 |
|
|
[考研] 材料工程專碩調劑自薦信,初試323 +6 | 李白26 2026-03-07 | 6/300 |
|
|
[考博] 求材料讀博院校 +9 | yanglei131 2026-03-08 | 9/450 |
|
|
[考研] 085701環(huán)境工程295求調劑,一志愿A區(qū)211 +8 | 等春來, 2026-03-06 | 9/450 |
|
|
[考研] 家人們 調劑不迷路 看這里 +8 | likeihood 2026-03-09 | 13/650 |
|
|
[考研] 求調劑,一志愿華中科大0702,數(shù)一英一,293 +4 | 小羅露一二 2026-03-07 | 4/200 |
|
|
[考研] 346分材料求調劑 +5 | snow_反季節(jié)版 2026-03-07 | 5/250 |
|
|
[考研] 一志愿211 化學305分求調劑 +3 | 0703楊悅305分 2026-03-05 | 3/150 |
|
|
[考研] 第一志愿上海大學,專業(yè)化學工程與技術,總分288,求調劑 +3 | 1829197082 2026-03-07 | 3/150 |
|
|
[考研] 304求調劑 +4 | 52hz~~ 2026-03-05 | 5/250 |
|
|
[考研]
|
程晴之 2026-03-06 | 6/300 |
|