2014-06-29 14:52:02 +0100 | received badge | ● Popular Question (source) |
2014-06-29 14:52:02 +0100 | received badge | ● Notable Question (source) |
2014-06-29 14:52:02 +0100 | received badge | ● Famous Question (source) |
2014-02-19 06:45:52 +0100 | asked a question | MixedIntegerLinearProgram method .get_values() returns "IndexError: list index out of range" I'm writing an MLP to solve a scheduling problem for a set of jobs. I have several variable types, including family 's_ij', which is a boolean indicating if time i occurs before or after time j. My program works, and returns feasible solutions. I'm trying to see the assigned values for each variable, and while I can see the start time for each job, and some other families of booleans, when I try to display the values for the 's_ij' variables, I get an "IndexError". This is weird, since I'm letting the MILP package do all the work here. Here are relevant sections of the code, as well as the output: Returns As I said, when I run the code, I get feasible solutions back. I have the case handling in place while defining my constraints to prevent b[i+1] from going out of range. I'm able to get_values and print all other variables. Any ideas what's going wrong here? |