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 Exchange에서 Creating 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