optimization: constraint (how to state 0<x<1)

Hi all
In this problem, we minimize an objective function using fmincon.
In particular, I have a question about the constraint. If I want to state that:
x(1)>0, 0<=x(1)<=1
How do I use specify this in matlab's language?

답변 (1개)

John D'Errico
John D'Errico 2014년 8월 25일

0 개 추천

These are simple bound constraints. Use the upper and lower bounds that fmincon offers. (READ THE HELP!)
Alternatively, you could just recognize that those constraints are simply
x(1) >= 0
x(1) <= 1
and supply them as linear inequality constraints.

카테고리

도움말 센터File Exchange에서 Simulink Design Optimization에 대해 자세히 알아보기

질문:

JJ
2014년 8월 25일

답변:

2014년 8월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by