mixed binary interger linear programming

2 ビュー (過去 30 日間)
ahmed-wali
ahmed-wali 2013 年 1 月 28 日
i'm trying to minimise the following function f=Sum of (ai*xi+150)*di for i between 1 and 20 were di is a binary number (o or 1) and xi greather or equal to zero subject to both equality and inequality. i'm finding difficult to include the binary numbers di which are multiplying the rest of the function.
many thanks
  2 件のコメント
Matt J
Matt J 2013 年 1 月 28 日
xi greather or equal to zero subject to both equality and inequality
And the "equality and inequality" constraints on the xi are all linear?
ahmed-wali
ahmed-wali 2013 年 1 月 28 日
yes they are all linear. without the multiplying binary numbers (di) it will be a strait forward linear programming question. many thanks Matt

サインインしてコメントする。

採用された回答

Alan Weiss
Alan Weiss 2013 年 1 月 28 日
I am sorry to say that, currently, there is no Optimization Toolbox solver that handles mixed integer linear programming.
There is a binary integer programming solver, bintprog, but it does not take any continuous variables, so is not suitable for your problem.
If you have Global Optimization Toolbox, you can try using ga for mixed integer programming. However, this is not a very robust solver. If you use it, be sure to follow the tip in the documentation and give finite upper and lower bounds for every component of your solution.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation

その他の回答 (2 件)

ahmed-wali
ahmed-wali 2013 年 1 月 29 日
Thanks Alan

Matt J
Matt J 2013 年 1 月 29 日
編集済み: Matt J 2013 年 1 月 29 日
yes they are all linear. without the multiplying binary numbers (di) it will be a strait forward linear programming question.
It might at least be worth a try to enumerate all of the vertices of the feasible set of x, e.g., using
I've sometimes managed to get a tractable result for dimensions up to 20. You know that for each fixed binary vector d, the problem reduces to a linear program in x and a solution must therefore lie at one of the vertices. So, you can search over the vertices exhaustively for a solution.
Furthermore, for each fixed vertex, x, the minimizing binary variables di are easy to get analytically. Each di will be 1 whenever ai*xi+150<0 and 0 otherwise, since only those terms will tend to decrease the objective.

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by