How to solve AX<=B, Where A is rectangualr matrix and b is vertical matrix

조회 수: 2 (최근 30일)
mahipal komandla
mahipal komandla 2017년 7월 24일
답변: Santa Raghavan 2017년 7월 27일
How to Matlab program for solving AX<=B, Where A is rectangular matrix and b is vertical matrix. For example: Find the set x of given AX<=B, where A=[1 2;6 5],B=[2 1]',X=[x1 x2]'. Please help me.

답변 (1개)

Santa Raghavan
Santa Raghavan 2017년 7월 27일
If you only have a system of inequalities your solution is generally not a point but an area (or volume...).
1. If you want a maximum feasible or minimum infeasible bounds for your system:
The linear programming (or linprog) in the optimization toolbox can compute feasible points of linear inequality systems (use f=0 as objective function). Finding the maximal feasible or minimal infeasible system is a mixed zero-one linear problem. If the number of inequalities is not too large you can use fminconset which is an extension of fmincon for this task.
2. If you want a visual solution
The Symbolic Math toolbox lets you plot inequalities and color codes region of interest.
plot::Inequality([ineq1, ], x = xmin .. xmax, y = ymin .. ymax, <a = amin .. amax>, options)

카테고리

Help CenterFile Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by