| 1 | 1/1 | 返回列表 |
| 查看: 2370 | 回復(fù): 0 | ||
1375481653銅蟲 (小有名氣)
|
[求助]
MATLAB中g(shù)a工具箱出現(xiàn)Constraint function must return real value.的錯誤?
|
|
M文件如下 非線性約束: function [g,ceq]=nlcon(x) zh=pi/180; g(1)=36.2-log(x(4))-3*log(x(1)); g(2)=36.4-log(x(4))-3*log(x(1)); g(3)=2.52*sqrt(22.5^2*x(4)^2*x(1)^6*x(3)^4-(105297920*cos(x(2)*zh)^2)^2)-450*x(4)*x(1)^3*x(3)^2+329056000*cos(x(2)*zh)^2; g(4)=1.29*sqrt(21^2*x(4)^2*x(1)^6*x(3)^4-(105297920*cos(x(2)*zh)^2)^2)-420*x(4)*x(1)^3*x(3)^2+329056000*cos(x(2)*zh)^2; ceq=[]; 目標(biāo)函數(shù): function f=mubiaof(x) zh=pi/180; a1=4.7*pi*x(4)*x(1)^3*x(3)^2; a2=cos(x(2)*zh)^2; f=a1/a2; |
| 1 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 347求調(diào)劑 +6 | 山頂見α 2026-03-25 | 6/300 |
|
|---|---|---|---|---|
|
[考研] 一志愿鄭州大學(xué),080500學(xué)碩,總分317分求調(diào)劑 +10 | 舉個栗子oi 2026-03-24 | 11/550 |
|
|
[考研] 085601材料工程找調(diào)劑 +17 | oatmealR 2026-03-29 | 18/900 |
|
|
[考研]
|
gr哈哈哈 2026-03-28 | 3/150 |
|
|
[有機(jī)交流] 考研調(diào)劑 +8 | watb 2026-03-26 | 8/400 |
|
|
[考研] 293求調(diào)劑 +3 | 末未mm 2026-03-30 | 5/250 |
|
|
[考研] 291求調(diào)劑 +8 | HanBeiNingZC 2026-03-24 | 8/400 |
|
|
[考研] 342求調(diào)劑 +4 | 加油a李zs 2026-03-26 | 4/200 |
|
|
[考研] 324求調(diào)劑 +9 | hanamiko 2026-03-26 | 11/550 |
|
|
[考研] 296求調(diào)劑 +10 | 彼岸t 2026-03-29 | 10/500 |
|
|
[考研] 352分-085602-一志愿985 +5 | 海納百川Ly 2026-03-29 | 5/250 |
|
|
[考研] 11408軟件工程求調(diào)劑 +3 | Qiu學(xué)ing 2026-03-28 | 3/150 |
|
|
[考研] 316求調(diào)劑 +7 | 江辭666 2026-03-26 | 7/350 |
|
|
[考研] 311(085601)求調(diào)劑 +4 | liziyeyeye 2026-03-28 | 4/200 |
|
|
[考研] 266分,求材料冶金能源化工等調(diào)劑 +7 | 哇呼哼呼哼 2026-03-27 | 9/450 |
|
|
[考研] 330一志愿中國海洋大學(xué) 化學(xué)工程 085602 有讀博意愿 求調(diào)劑 +3 | wywy.. 2026-03-27 | 4/200 |
|
|
[考研] 08開頭275求調(diào)劑 +4 | 拉誰不重要 2026-03-26 | 4/200 |
|
|
[考研] 中國科學(xué)院深圳先進(jìn)技術(shù)研究院-光纖傳感課題組招生-中國科學(xué)院大學(xué)、深圳理工大學(xué)聯(lián)培 +5 | YangTyu1 2026-03-26 | 5/250 |
|
|
[考研] 303求調(diào)劑 +6 | 藍(lán)山月 2026-03-25 | 6/300 |
|
|
[考研] 求b區(qū)院校調(diào)劑 +4 | 周56 2026-03-24 | 5/250 |
|