fmincon nonlinear constraints

when using fmincon, can you only have one nonlinear constraint for "c".
I am doing an optimization that requires analysis on both deflection (Da - D <= 0) and bending stress (sig - siga <= 0). Can I go ahead and just have:
function [def,bend,ceq] = mycon(x) % called in fmincon function def = ... bend = ... ceq = [] end
that will take both of those constraints into account, or do I somehow have to combine them? Any help would be appreciated. Thanks

댓글 수: 1

Laurens Bakker
Laurens Bakker 2012년 2월 27일
Which version of MATLAB are you using? I'm asking because in the most recent version, the function that encapsulates the non-linear constraints should only have 2 returns: [c,ceq]

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

답변 (1개)

Sean de Wolski
Sean de Wolski 2012년 2월 27일

0 개 추천

If you concatenate them, C could contain both constraint matrices?

카테고리

도움말 센터File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

질문:

2011년 2월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by