# Advanced Linear Programming

**URL:** <https://community.wolfram.com/t/advanced-linear-programming/4027>\
**Category:** Questions\
**Tags:** mathematica, logic, optimization, wolfram-engine\
**Created:** [November 17, 2014, 10:52am UTC](https://community.wolfram.com/t/advanced-linear-programming/4027 "2014-11-17T10:52:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nluboshitz](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@nluboshitz](https://community.wolfram.com/u/nluboshitz)\
**Post date:** [November 17, 2014, 10:52am UTC](https://community.wolfram.com/t/advanced-linear-programming/4027/1 "2014-11-17T10:52:33Z")

</div>

Hi all,  
I’m working on a linear programming problem and got stuck.  
The problem deals with academic tests schedule and one of the main methods I want to consider is the amount of days there are to study for each test.  
The question is: how can I know the amount of days to study for each test if my decision variable is Xct (binary - gets 1 if exam c takes place at the time-slot t)  
(The target is to calculate the margin between the “t” of two X’s that equals 1).

Thanks!!

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [November 17, 2014, 4:54pm UTC](https://community.wolfram.com/t/advanced-linear-programming/4027/2 "2014-11-17T16:54:56Z")

</div>

It looks like you need to work with an integer linear program (ILP), at least in the formulation you describe. Both `NMinimize` and `LinearProgramming` support integer variables, and of course they can be restricted to binary with a constraint such as `0<=x<=1`.
