필터 지우기
필터 지우기

Error in optimization using fmincon

조회 수: 2 (최근 30일)
NIKET shah
NIKET shah 2018년 6월 25일
댓글: Matt J 2018년 6월 25일
1. Error : Not enough input arguments.
Error in fun (line 4) y = a1*Lh^2*x(1)^2 + b1*Lh*x(1) + a2*Lh^2*x(2)^2 + b2*Lh*x(2) + a3*Lh^2*x(3)^2 + b3*Lh*x(3);
2. Aeq must have one column.
If someone knows please help me out. Thank You.
  댓글 수: 3
NIKET shah
NIKET shah 2018년 6월 25일
편집: Matt J 2018년 6월 25일
i tried fixing the problem. This is what i am getting now. --------------------------------------------------
Local minimum found that satisfies the constraints.
Optimization completed because the objective function is non-decreasing in
feasible directions, to within the default value of the optimality tolerance,
and constraints are satisfied to within the default value of the constraint tolerance.
<stopping criteria details>
Matt J
Matt J 2018년 6월 25일
Looks like you fixed it!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by