My Math Forum Integer linear programming - auxillary binary range constraint variable

 Applied Math Applied Math Forum

 March 19th, 2016, 09:58 AM #1 Newbie   Joined: Oct 2013 Posts: 29 Thanks: 1 Integer linear programming - auxillary binary range constraint variable Hello, I'm currently facing this problem in ILP: I have two matrices of dimension 1*n of variables : $$s_i,x_i$$ I would like to create a matrix of new variables (dimension n*k, where k is an arbitrary natural number). Using constraints, I would like the variables to have the following function: $$z_{ij} = \begin{cases} 1 & \text{if } j \geq s_i \text{ and } j \leq x_i\\ 0 & \text{otherwise} \\ \end{cases}$$ For example: $$s_i = 4 \\ x_i = 8 \\ z_{i5} = 1$$ My question is, how would I formulate the constraints of $$z_{ij}$$?

 Tags auxillary, binary, constraint, integer, linear, programming, range, variable

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post cirisiamo New Users 0 May 15th, 2015 04:25 AM Cadbury Applied Math 1 January 27th, 2015 12:22 AM kariz Economics 1 March 25th, 2012 07:33 PM azaz104 Applied Math 0 June 11th, 2011 05:05 PM Gekko Calculus 3 June 12th, 2010 09:16 AM

 Contact - Home - Forums - Cryptocurrency Forum - Top