simultaneous linear equations minimization by linprog command

조회 수: 2 (최근 30일)
millennium
millennium 2014년 1월 14일
편집: Matt J 2014년 1월 14일
how can i minimize some simultaneous linear equations by 'linprog' command(script)? for example we have three variables and we want to minimize each of them such that the summation of variables is constant and also there are some other constraints. how can i compute minimum of each variable with mentioned command?

답변 (2개)

Matt J
Matt J 2014년 1월 14일
편집: Matt J 2014년 1월 14일
If you have multiple objectives to minimize, it sounds like you really want FGOALATTAIN, rather than LINPROG.

Seth DeLand
Seth DeLand 2014년 1월 14일
The summation of the variables being equal to a constant could be taken care of by an equality constraint. In that case, your Aeq matrix would be [1 1 1], and beq would be whatever you wanted the variables to sum up to.
There's a good video here that shows how to setup a linear optimization problem using linprog: http://www.mathworks.com/videos/mathematical-modeling-with-optimization-part-2-68974.html

카테고리

Help CenterFile Exchange에서 Linear Programming and Mixed-Integer Linear Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by