Odd/even number constraint in linear programming

I'm about to use intlinprog function with x1,x2,x3 have to be integers. How can I say to my program that I want x1 to be an even number?

回答 (1 件)

Matt J
Matt J 2020 年 10 月 13 日
編集済み: Matt J 2020 年 10 月 13 日

0 投票

Make a change of variables of the form x1=2*y1, where y1 is also an integer-constrained variable.

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2020 年 10 月 13 日

編集済み:

2020 年 10 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by