필터 지우기
필터 지우기

Is it possible to find out an unknown variable within constraint which is not present in the objective for a optimization problem?

조회 수: 2 (최근 30일)
Hello all,
Suppose I have a objective function with unknown variable x(1). But my constraint is depend on unknown variable x(1) and x(2). Is it logically possible to find out a optimized value for x(2) using 'fmincon' command?

채택된 답변

Matt J
Matt J 2020년 11월 27일
편집: Matt J 2020년 11월 27일
Yes. It is not a problem if your objective only depends on a subset of variables. However, you must pass the full unknown vector x=[x1,x2] to your objective function and constraint code. You also must write your A,Aeq matrices to have two columns.

추가 답변 (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