Full text
Preprocessing techniques for Integer Linear Programming Franco Sanchez, V´ıctor Computer Engineering Graduate Dissertation Computation specialty March 2020 Director: Robert Lukas Mario Nieuwenhuis Co-director: Enric Rodr´ıguez Carbonell Tutor: Joan Sarda Ferrer
Abstract P vs NP has been (and still is) one of the most, if not the most important problem in computer science. NP-Complete problems are infamously difficult to solve, and not only that, but they are also very prevalent in almost every field inside computer science research. Because of that, finding efficient methods for solving NP-Complete problems is very important. In this project, we focus on a couple methods for improving the efficiency of Integer Linear Programing (particularly, the subset of problems in ILP where variables are binary, called Binary or Pseudoboolean Linear Programming) and compare their performance using the solver “Intsat” developed by Barcelogic, a spinoff of UPC. The final goal for this project is to implement and study the efficiency of these methods, and to integrate them into Intsat if they appear to make an improvement on the running time and/or the quality of the solutions. 2
Preprocessing techniques for Integer Linear Programming Contents 1. Context 6 1.1. Termsandconcepts .................................. 6 1.2. Problemformulation.................................. 7 1.3. Previouswork...................................... 8 1.4. Stakeholders....................................... 8 2. Justification 9 3. Scope 9 3.1. Objectives and Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2. Obstaclesandrisks................................... 10 4. Implemented Methods 10 4.1. Strengthening...................................... 10 4.1.1. Formulation................................... 10 4.1.2. Development .................................. 11 4.1.3. Implementation................................. 12 4.1.4. Results ..................................... 15 4.2. LocalSearch ...................................... 15 4.2.1. Formulation................................... 15 4.2.2. Development .................................. 16 4.2.3. Implementation................................. 17 4.2.4. Results ..................................... 18 5. Methodology and rigour 20 5.1. Methodology ...................................... 20 5.2. Monitoringtools .................................... 21 5.3. Update on methodology and monitoring . . . . . . . . . . . . . . . . . . . . . . . 21 6. Description of the task and estimates 22 6.1. Research......................................... 22 6.2. Projectplanning .................................... 22 6.3. Familiarize with existing code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.4. Technique #1: Implementing Strengthening . . . . . . . . . . . . . . . . . . . . . 22 6.5. Studying the improvement of technique #1 . . . . . . . . . . . . . . . . . . . . . 23 6.6. Technique #2: Implementing local search for finding constraints . . . . . . . . . 23 6.7. Studying the improvement of technique #2 . . . . . . . . . . . . . . . . . . . . . 23 6.8. Futuretechniques.................................... 24 6.9. Memory......................................... 24 6.10.Updatesontasks.................................... 24 7. Gantt diagram 24 7.1. Updateonplanning .................................. 26 8. Risk management 26 8.1. Research......................................... 26 8.2. Development ...................................... 26 3
Preprocessing techniques for Integer Linear Programming 8.3. Improvementstudy................................... 26 8.4. Memory......................................... 26 8.5. Miscellaneous...................................... 27 8.6. Lackoftime....................................... 27 8.7. Halting of the implementation of Technique #1 . . . . . . . . . . . . . . . . . . . 27 9. Budget 27 9.1. Hardware ........................................ 28 9.2. Software......................................... 28 9.3. Humanresources.................................... 29 9.4. Unforeseenevents.................................... 29 9.5. Indirectcosts ...................................... 30 9.6. Contingency....................................... 31 9.7. Finalbudget ...................................... 31 9.8. Controlmanagement.................................. 31 9.9. Economicviability ................................... 32 9.10.Updateonbudget ................................... 32 9.10.1.Hardware .................................... 32 9.10.2.Software..................................... 32 9.10.3.Humanresources................................ 32 9.10.4.Unforeseenevents ............................... 32 9.10.5.Indirectcosts.................................. 32 9.10.6.Contingency .................................. 33 9.10.7.FinalBudget .................................. 33 9.10.8. Control management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 10.Sustainability report 33 10.1. Sustainability dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 10.1.1. Economic dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 10.1.2. Environmental dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 10.1.3.Socialdimension ................................ 35 10.2.Sustainabilitymatrix.................................. 35 10.3.Updateonsustainability................................ 35 10.3.1. Economic dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 10.3.2. Environmental dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 10.3.3.Socialdimension ................................ 36 10.3.4. Sustainability matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 11.Conclusions 36 11.1.TechnicalSkills..................................... 36 11.2.FutureWork ...................................... 37 11.3.Specialthanks ..................................... 38 12.References 39 A. Boolean Satisfiability Problem 41 A.1.Unitpropagation.................................... 41 B. Linear Programming 42 4
Preprocessing techniques for Integer Linear Programming C. Integer/Pseudoboolean linear programming 43 C.1. Unit propagation for Pseudoboolean Linear Programming . . . . . . . . . . . . . 43 D. Proof of correctness for Strengthening 44 E. Experimental data 44 E.1.Strengthening...................................... 45 E.2.LocalSearch ...................................... 45 List of Figures 1. Data extracted from running the local search method on fast0507.lp. . . . . . . . 19 2. Data extracted from running the local search method on seymour.lp. . . . . . . . 20 3. Gantt diagram for this project. Self elaborated, made with the pgfgantt library on L A T EX. ........................................ 25 List of Tables 1. Hardware costs. Self elaborated. . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 2. Software costs. Self elaborated. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3. Human resources costs per role I am taking. Self elaborated. . . . . . . . . . . . 29 4. Human resources costs per task. Self elaborated. . . . . . . . . . . . . . . . . . . 29 5. Unforeseen events for human resources. Self elaborated. . . . . . . . . . . . . . . 29 6. Unforeseen events for materials. Self elaborated. . . . . . . . . . . . . . . . . . . 30 7. Indirect costs. Self elaborated. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 8. Contingency plan. Self elaborated. . . . . . . . . . . . . . . . . . . . . . . . . . . 31 9. Final budget. Self elaborated. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 10. Actual final budget. Self elaborated. . . . . . . . . . . . . . . . . . . . . . . . . . 33 11. Sustainability matrix. Self elaborated. . . . . . . . . . . . . . . . . . . . . . . . . 35 12. Final sustainability matrix. Self elaborated. . . . . . . . . . . . . . . . . . . . . . 36 13. Multiple runs of Intsat solving a selection of problems with and without strengthening.Selfelaborated.................................. 45 14. Multiple runs of local search solving autogenerated Unweighted Maximum 2-Set Packing with the optimal recomended Q. Self elaborated. . . . . . . . . . . . . . 46 15. Multiple runs of local search solving autogenerated Unweighted Maximum 2-Set Packing with suboptimal Q when compared to the recommendation. Self elaborated. 47 16. Multiple runs of local search solving a small selection of problems in MIPLIB. If the same problem is shown twice with the same values for Q means that we’re testing execution with a different initial solution. Self elaborated. . . . . . . . . . 48 5
Preprocessing techniques for Integer Linear Programming 1. Context This graduate dissertation is made by V´ıctor Franco Sanchez, computer engineering student in the Computation specialty at the Polytechnic University of Catalonia (UPC for short, also known as BarcelonaTech). The specialty centers around the development of efficient systems in sectors like computer graphics, AI, compilers, and logical programming. This project falls into the latter area, being a project focused on improving current satisfiability algorithms, particularly Integer and Binary Linear Programming, by preprocessing the input in certain ways that improve the runtime of the algorithms. 1.1. Terms and concepts •Linear programming is the problem where you try to find the optimum values for a set of variables that can take real values such that they maximise a certain linear expression, given a set of linear constraints of the form Pqivi≥k. •Integer Linear Programming is a variant on the previous problem where the variables can only take integer values. If the values these variables can take are just 0 and 1, this problem is called Binary Linear Programming, or Pseudo-boolean Linear Programming. The decisional version of both these problems are both NP-Complete. •Satisfiability is the property of a certain logical function that can be “satisfied”. In other words, that exists a certain model that satisfies that formula. Determining whether or not a logical formula is satisfiable or not is known as the Boolean Satisfiability Problem, or SAT for short, and is the first known NP-Complete problem (Cook’s theorem)[19]. •CNF (Conjunctive Normal Form), also known as Clausal Form, is how most logical formulas are given to modern SAT solving methods. It is a conjunction of clauses (c1∧...∧cn), each clause being a disjunction of literals (l1∨... ∨lm) [1, p. 75]. •Resolution is a technique for inferring new clauses from a CNF. It works by taking two clauses already in the CNF of the form p∨Aand p∨B, and inferring A∨B. A formula in CNF is satisfiable if and only if you cannot find the empty clause in the closure under resolution (that is applying resolution into your formula until you’re producing no new clauses). •DPLL (Davis-Putnam-Logemann-Loveland) is an algorithm for finding the satisfiability of a certain logical formula via four operations: ·Decision: Setting a certain literal from undefined to true in your model. ·Unit-propagation: Finding which literals can be set to true as a direct logical consequence of the literals set to true in the current model via resolution. A more in-detail explanation on how unit propagation works can be found in Annex A.1. ·Backtrack: Once a conflict is found, backtrack up to the last decision, and change that literal from true to false, making that literal no longer a decision. (Alternatively, you can backjump up to the arbitrarily far away decision that caused the conflict, if you keep that information somewhere). ·Fail: If you find some conflict, but no decision was made, you know the formula is unsatisfiable. If you have no more literals to decide on and you have not failed, the formula is satisfiable 6
Preprocessing techniques for Integer Linear Programming and the model you have generated is already a model for your formula. This algorithm, or slight modifications of it, are the most common algorithms for state-of- the-art SAT solvers, since not only they can be really optimized and parallelized, but also generate as a byproduct a model for the formula in hand if that formula is satisfiable [1, p. 110-114]. Modern implementations of DPLL often also learn additional clauses (lemma learning), and after a while they get rid of added clauses the algorithm deems expendable (clause cleanup). •BDDs (Binary Decision Diagrams) are data structures used for encoding boolean functions efficiently in a DAG-like structure, where every node is labeled as a variable, and whether one path is taken or the other depends on whether the variable is set to true or false. The only nodes with no labeled variable are the leaves of the graph, which are labeled either 0 or 1. Given a certain interpretation, the value the BDD ‘returns’ is the value of the leaf node you get by following the BDD from its root. In the literature, the term BDD almost always refers to ROBDDs, which are a particular subset of the more general BDDs, in which the BDD is the smallest following a prefixed ordering of the variables [3]. •Probing is a preprocessing technique in which you obtain some information by setting one or many literals to true, and then obtaining some other formula that is a logical consequence of your initial formula when those literals are set to true, either by unit propagation, DPLL up to nconflicts, or any other method. If, by doing this, you find out that this formula is unsatisfiable, you know those literals are inconsistent, and therefore you can add a clause that encodes that. Also, if by probing the literals {l1, ..., ln}you get that the literal lkis true, you can add the clause (l1∧... ∧ln)→lkto encode that fact. •Strengthening is a preprocessing technique exclusive to Pseudoboolean Linear Programming, in which, after probing a set of literals {l1, ..., ln}, you “strengthen” some constraint c←Pqili≥kinto sPn i=1 li+Pqili≥k+s, where sis the “slack” of the constraint, or by “how much” that constraint is satisfied under the current model. As an example, if c←a+ 2b+ 3c≥2, if by probing {d}we obtain the model {b, c, d}, this formula is now “over-satisfied” by 3, and therefore we can strengthen this clause into 3d+a+ 2b+ 3c≥5 [2, p.76-81]. 1.2. Problem formulation Barcelogic is a UPC spin-off company co-owned by Robert Nieuwenhuis and BarcelonaTech. They are working on a Pseudo-boolean Linear Programming solver intended for cloud computing, and they are interested to see the efficacy of certain preprocessing techniques that have shown promising results in previous papers, theses and dissertations. My goals in this project are to improve the efficiency and speed of integer and particularly pseudoboolean linear programming solvers by implementing and studying the efficacy of different preprocessing techniques. It’s important to note that CNF-SAT is a particular case of Pseudoboolean Linear Programming (which in turn is a particular case of Integer Linear Programming) because the satisfiability of the clause l1∨... ∨lnis equivalent to the linear inequality l1+... +ln≥1, and therefore there are two natural ways for developing new techniques for Pseudoboolean Linear Programming: 7
Preprocessing techniques for Integer Linear Programming 1. Generalizing techniques used for SAT. 2. Specializing techniques used for ILP. The first method considered in this work particularly focuses on the former. We’re focusing on papers like Heidi Dixon’s dissertation “Automating pseudo-boolean Inference within a DPLL framework” [2], which particularly focuses on solving the pigeonhole problem, problem that is explained in Section 2 of this document, or like the paper by Ignaci Ab´ıo Et Al. “A New Look at BDDs for Pseudo-Boolean Constraints” [4], which focuses on obtaining pseudoboolean constraints via BDDs. 1.3. Previous work Of course, many SAT solvers and Integer Linear Programming solvers already exist. Unfortunately, many of these are really secretive about the techniques they use, so we cannot know if they are using or not these techniques. The most popular tools for solving linear programming are Gurobi, CPLEX, GLPK (Open source), and SCIP, amongst others. Although GLPK is open source, I couldn’t find what kind of preprocessing techniques it uses, since its documentation only specifies that it uses some kind of preprocessing, and not which techniques they use. I can assume, though, that these techniques are very different to the techniques I’ve implemented for this dissertation, since they seem to work for real linear programming as well. In this project we’re focusing on preprocessing techniques for integer and pseudoboolean linear programming exclusively, since that way we can get stronger constraints. 1.4. Stakeholders •Director(s). The directors are a key figure in the development of this project. They contribute all the needed knowledge and information required for this project, and they also provide the code for their pseudo-boolean solver, as well as useful software and code such as other integer linear solvers, scripts for “fuzzing”, etc. They are Robert Nieuwenhuis and Enric Rodr´ıguez, and of course, without them this project would be impossible. •Barcelogic. Barcelogic is the company for which this solver is being developed. Nieuwenhuis and Rodr´ıguez are both members and founders of Barcelogic, and therefore everything I said about them can be said about Barcelogic. •End users. As a Pseudo-boolean Linear Programming solver, this tool has a lot of applications in fields like Operational Research and Scheduling. These tools have been used by organizations like FIFA[6], and are also used for public transport planning, automation, floorplanning, and a lot more applications. •Research. This problem is really close to the P vs NP fringe, meaning there’s a lot we don’t know yet about this, and therefore there are many people researching similar topics. I hope that the results obtained in this dissertation can help to improve our knowledge on this topic. •Students. If the dissertation ends up being accessible enough, it can be used as supporting material for students trying to get into very similar topics, which are often thought of as very counterintuitive. 8
Preprocessing techniques for Integer Linear Programming 2. Justification There are many problems that state-of-the-art satisfiability solvers have trouble solving. One example of these is known as the pigeonhole problem, which states that n+ 1 pigeons cannot be placed in nholes if each gets its own hole. These problems are believed to be common subproblems in many domains, such as planning and scheduling. This problem should be easy to solve, but traditional satisfiability methods make them way harder. Traditional satisifiability methods fail to solve this kind of problems efficiently because their proof system is based on resolution, and all proofs by resolution of the pigeonhole problem are exponential in length [2, p.iv-v]. Here is where preprocessing comes into play. The idea is to preprocess the formula in advance, to acquire new information that cannot normally be obtained efficiently with the toolset of modern satisfiability methods, which barely goes beyond just resolution, to try and solve these problems more efficiently. Also, I am not working from a blank slate, but instead, I am working with the code of a pseudoboolean solver, which already has some minor preprocessing techniques, which produce some byproducts that can, but are not used for further preprocessing. For example, the code I was given implements probing, but not strengthening, which is a technique that builds on top of probing. If I am able exploit these kinds of things that would be even better. For alternatives to my project, I can think of two things: 1. To implement different preprocessing techniques. The problem with this is that because of how lackluster the information about this topic is, it is very difficult to assess if one technique is better than another just by looking at the theory, and therefore practical experiments must be done to determine the efficacy of these with respect to each other. Of course, if you carry out these experiments, you’re already implementing these techniques. Therefore, which techniques we decide to implement is really subjective. The techniques I have implemented are techniques that my directors, which have been working in the field of logic in computer science for years, think that can be effective. 2. To completely change the algorithm for solving integer or pseudoboolean linear programming. That, of course, is not really viable, especially as an end-of-degree dissertation that I’ve done in two semesters worth of time, since probably no algorithm I could come up with would ever come even close to the efficacy of DPLL for the task at hand. 3. Scope 3.1. Objectives and Requirements The main objective of this project is to improve the efficiency and speed of integer and pseudoboolean linear programming solvers by implementing different preprocessing techniques, and to evaluate their effectiveness in terms of time gain with or without applying this technique. To achieve this goal, I have to update my knowledge of the state of the art in Operations Research, linear programming, SAT solvers, etc. I also must verify the correctness of my code. Because this project builds up from other 9
Preprocessing techniques for Integer Linear Programming •Let zbe the best feasible solution. A solution yis interesting if the following properties hold: (A1) No constraint is violated by more than one unit by y. (A2) The taxicab distance between the traces of yand zis of at most a certain hyperparameter2Q. (A3) cTy > cTxfor all xalready examined by the algorithm such that h(trace(x)) = h(trace(y)) We will also define an object called a Trace Box TB that stores the evaluation of the function to optimize for the hash of the trace of every seen solution, and a set of interesting solutions called the Solution List SL. With that in mind, we can finally define the local search procedure as follows: LocalSearch (A, b , c , z0 , Q) : z<−z0 SL <− {z} while SL i s not empty : x<−SL . pop () foreach y adjacent to x : i f y i s f e a s i b l e and cTy >cTz : z<−y SL <− {y} TB[ i ] <− −I n f i n i t y , f o r a l l i break out o f the f o r loop e l s e i f y i s i n t e r e s t i n g : TB[ h( tra ce (y ) ) ] <−cTy SL . add ( y ) This code adds the initial solution into the SL set, and then the main loop starts. The loop pops an element from the set, and looks through all the adjacent solutions. If an adjacent solution is interesting, this solution is added to the set, and if an adjacent solution is both feasible and better than the current solution, we set this solution to be the new best solution and begin the process all over again, as if this solution was the initial we got. This keeps on going until the set is empty. 4.2.2. Development Learning from past mistakes, this method was implemented as a stand-alone application in C++. This program had to read and parse: •An input file using the .lp format for MLP containing a boolean linear programming problem. •A solution for that same problem in the same format Intsat outputs solutions. •A value for the hyperparameter Q. 2Hyperparameter used in a similar sense of what is often used in Machine Learning: That is an external parameter with no clear optimum value, chosen by the engineer. 16
Preprocessing techniques for Integer Linear Programming And then apply the algorithm described previously. Because we only care about a trace of a solution when it is either feasible or interesting (as in the definition of “interesting” I gave in Section 4.2.1), we can store the trace as a vector of bools (because the second half is already all 0s or 1s, and, if the solution is feasible the first half will be all 0s, and if it’s interesting, because of property (A1) mentioned before, will have, at most, some 1s). Vectors of bools in C++ are implemented more efficiently in memory and thus we increase the efficiency of operating with traces, since if they occupy less in memory, the chances of cache misses go down, but often have some time overhead when accessing to a certain position[16]. This overhead was supposed worth it because cache misses are very costly, but no tests were conducted to test whether or not this is the case. To keep track of the lost information, we also add a boolean flag for whether or not some constraint is violated by more than one unit. We also add another flag of whether or not the solution is feasible, for efficiency. 4.2.3. Implementation The implementation for this method is pretty straightforward, and the final code resembles a lot the pseudocode given in Section 4.2.1. That being said, there are some points worth mentioning. 1struct traceStruct { 2 std :: vector <bool> violation ; 3 std :: vector <bool> slack ; 4bool isFeasible ; 5bool isViolatedByMoreThanOneUnit; 6 }; This is the definition for the trace. As mentioned before, we’re using vectors of bools for greater memory efficiency. The trace is split into its two components “violation” and “slack” for readability. Bertsimas et al.’s paper grants results for any injective hash function h, so the hash function implemented was a trivial function that only took the trace and casted it into string. 7 string h(struct traceStruct & trace ){ 8 string hash = ""; 9for(int i = 0; i < trace . violation . size (); ++ i) 10 hash += std :: to_string ( trace . violation [i]); 11 for(int i = 0; i < trace . violation . size (); ++i) 12 hash += std :: to_string ( trace . slack [i ]); 13 return hash; 14 } It’s important to note that “std::to string” casts true to “1”, and false to “0”. So basically, this just turns the trace into a binary string. The paper mentioned a different hash function, but due to a lack of time it could not be implemented. The traces were computed just once per solution, and the traces were passed by reference every time some information the trace contains was needed. 17
Preprocessing techniques for Integer Linear Programming The Solution List SL is implemented with a queue, as recommended by the authors of the original paper, and the Trace Box TB is implemented with a map. If the element is not in the map, the value is considered -Infinity, meaning that to run the line “TB[i] = -Infinity, for all i” all I had to do was to empty the map. 4.2.4. Results The correctness for this implementation was tested both with fuzzing and with problems from MIPLIB. We also generated “unweighted maximum w-set packing” problems, described by having a constraint matrix A∈ {0,1}m×nthat has exactly w“1”s in each column, and the function to maximize cTxhaving a vector cequal to all ones. These problems were chosen because the original paper gave an upper bound to the expression z∗/zh (z∗being the optimal solution and zh being the solution found) equal to w2/(2w−1). In all cases, the implementation was shown correct under the tested cases, and gave positive results. As an example, we’ll use two problem from MIPLIB called fast0507.lp and seymour.lp. Both are “Set Covering” problems, category of problems for which the paper promises good results on. First, we’ll focus on fast0507.lp[20]. Intsat found 4 solutions after 107, 252, 451 and 11825 seconds, with an objective function of 347, 336, 302 and 291 respectively. For the following plot (Figure 1.), I left the local search method running for at most 10 minutes per execution, with differing values for the hyperparameter Q (1, 2, 5, 10 and 50). Each black point represents an Intsat solution, and the different lines coming out of the points represent the different executions of the local search method for each different value for Q. Every time the local search finds a better solution than the initial one, its corresponding line “dips down”, indicating that a new better solution was found. The last solution found by Intsat is omitted, since it’s already the optimum and therefore the local search won’t be able to improve upon it, and being found so late would mess up with the plot. 18
Preprocessing techniques for Integer Linear Programming Figure 1: Data extracted from running the local search method on fast0507.lp. This plot shows some promising results, especially for the last executions. Since the next solution found by Intsat was more than 3 hours after the previous one, this algorithm being able to find better solutions compared to the second to last one found in significantly less time could mean a decent improvement. The next plot, though, is not as promising. For this next plot (Figure 2.), I followed the same steps as in the previous one, this time for seymour.lp[21]. Unlike the other plot, no Q over 2 is plotted. This is not because the tests were not run, but because the results were the same with Q = 5, 10, 50 as with Q = 2. That is, nothing was found. 19
Preprocessing techniques for Integer Linear Programming Figure 2: Data extracted from running the local search method on seymour.lp. The main reason something was found with Q = 1 but not with Q = 2, is because for Q = 2 this algorithm has to look for way more possible solutions, meaning that there’s a chance that solutions previously found with Q = 1 are not found because of a lack of time. For the same reason, for “Qs” of 5, 10 and 50 nothing is found. All of this hints to the idea that this method might be useful under some circumstances, but is not always useful. Further data can be found in Annex E.2, including the exact data obtained while testing with the unweighted maximum w-set packing problems. 5. Methodology and rigour 5.1. Methodology The methodology used for this project is an Agile methodology. Agile methodologies are an efficient, iterative and incremental approach to software development, where you make the development cycle short so you always have a functioning version, and you can always give feedback to fix any mistakes made in any of the other development stages. These cycles are called “sprints”. Normally, the time required for these sprints is decided beforehand, but by the nature of my project, it’s difficult for me to predict how much an sprint will take me. I’ll try to make most sprints one week long, and I’ll work to keep the sprints as short as I am capable of to try and span as much as I can. 20
Preprocessing techniques for Integer Linear Programming Every week, I’ll meet with my directors, and discuss what my next sprint is going to be (if I am not in the middle of an sprint already). During the week, I’ll work to complete that sprint, and by the next week, when I meet with my directors once again, I’ll show them the progress I made during this time, and extract conclusions based on the results obtained during the week. If the sprint is finished, we’ll discuss my next sprint and so the cycle repeats. If some obstacle occurs during a sprint that heavily inhibits my capabilities to continue the project, I’ll meet with my directors, and we’ll try and make some contingency plan for it. This is further explained in Section 8 of this document. 5.2. Monitoring tools I’ll be using mainly GitLab for version control of the project, and to store the multiple versions of the project memory. This way, I’ll have a better view on how this project evolved over time. Regular meetings will be held with the directors where we’ll review, amongst other things, the progress made since the last meeting, the status of the project as a whole, and any doubts and questions that might have arisen. Given the nature of the project, these meetings will sometimes also provide theoretical explanations not seen during the course for the proper development of the project. If any unforeseen problems arise, I’ll get in touch with the directors and, if necessary, a contingency plan or route to follow will be proposed to solve the problem in question. Due to recent events, not all meetings can be face-to-face. Therefore, while we’re on state of alert, we will keep in contact via email or some other online service for communication, such as Skype. In principle, this shouldn’t be anything more than a minor inconvenience. 5.3. Update on methodology and monitoring During the development of the project, as predicted, I couldn’t meet with my directors due to the confinement. We’ve been contacting via email, sometimes once per day, sometimes once per week. That being said, I don’t feel as if this was just a minor inconvenience as I predicted back when I wrote the previous section. Perhaps it’s because of how I learn, but this has been way more difficult for me than what I anticipated, and not being able to talk face-to-face with my directors for sure made it worse. I feel like I’ve been way too careless, and I have used GitLab far less than what I expected. Because of that, I have ended up losing part of my progress, especially during the first of the two methods implemented. I have kept using the Agile methodology during the project. As predicted, the length of each sprint was very inconsistent, and I even had some sprints that were just running tests. At the beginning, sprints were a week long, but especially during the second method, the sprints got on average a lot shorter, mainly because of the lack of time. Every time I found myself in front of a problem that was way above my weight class, I made sure to send an e-mail to my directors as quickly as possible to try and solve this problem as soon as possible. 21
Preprocessing techniques for Integer Linear Programming 6. Description of the task and estimates This project will be developed in the time span of one semester. Due to the fact that I will not be doing this project full-time, my prediction is a minimum of 14 weekly hours, and an average of 30. 6.1. Research This being a research-based dissertation, I have to do my research as well. I have to read on the state-of-the-art solutions for preprocessing integer and pseudoboolean problems to be able to develop these techniques. Effort estimation: It really depends on how difficult the subject at hand is to research. I expect 10 hours for each technique to implement. Maybe more, if the technique is more complex, or less if it’s simpler. Dependencies: None. Material requirements: Papers. 6.2. Project planning The GEP deliveries take time to write. Effort estimation: Since writing is not my forte they might take me a little bit more than the planned time, but as an approximation I’ll just take 90 hours estimation from the fact that this subject is 3 credits, and split them accordingly to each deliverable in function of their workload. Dependencies: This task has no further dependencies besides the fact that, before being able to write this, I have to be somehow familiarized with my project. 6.3. Familiarize with existing code I am working with pseudo-boolean solver written in C++ given by Barcelogic [7] for me to implement the different preprocessing techniques. I must familiarize myself with the code so I know what’s implemented and what’s not, the basic structure of the code, and where and how to code everything I have to code. Effort estimation: Because I’ve been programming in C++ for a while, and I worked previously on similar (although simpler) code, I don’t expect this to take me too long. Between 5 and 10 hours seems like a reasonable estimation. Dependencies: I depend on having the code. 6.4. Technique #1: Implementing Strengthening The first technique to implement is strengthening. I talked about strengthening on the previous delivery, but in short, strengthening is a technique to obtain stronger pseudo-boolean 22
Preprocessing techniques for Integer Linear Programming constraints by knowing by how much a certain constraint is over-satisfied by setting some literal to true. Effort estimation: This technique is not too difficult, so I don’t expect it to take too much time to implement. Perhaps 3 weeks worth of time, which would be somewhere around 90 hours according to previous predictions. Dependencies: I depend on tasks 1.1 and 1.3. 6.5. Studying the improvement of technique #1 After programming technique #1, we need to assess the efficacy of the technique in question. Effort estimation: Depending on the results, I expect this can take from 5 to 20 hours off my useful time. Of course, these studies take longer to complete, but they can be done automatically, in the background, so this time is just the time it takes me to write the scripts to get the data, and to extract conclusions from this data. Dependencies: I depend on task 1.4. 6.6. Technique #2: Implementing local search for finding constraints Knowing what’s the strongest constraint that is a logical consequence of a formula is a CONP Hard problem (Since the strongest constraint you can get from a contradiction is 0 ≥1, and knowing if a formula is a contradiction is a CO-NP Complete problem). Therefore, I’ll be looking to get some strong enough constraint that is a logical consequence of the formula via local search, instead of just the “strongest” constraint. Some state-of-the-art methods use many techniques to get constraints that are logical consequences out of logical formulas, such as using BDDs [4], but these still are not the best-possible constraints obtainable, for the reason stated previously. We can study if we can possibly improve these solutions by slightly altering these clauses to make them stronger. I don’t have the sufficient knowledge yet to assess how I’d implement this (since that is what the research task is for), but the main idea is that by decreasing the independent term, or by increasing the coefficients, you get a stronger constraint. If that constraint’s still a logical consequence, we’re good. To implement all of these, I will not only have to implement the local search, but also the BDDs or some other technique [5] to obtain some initial pseudo-boolean constraints. Effort estimation: This technique is more general and more complex, therefore I suspect it will be more difficult to implement than the previous one. I expect something around two months worth of time, or 240 hours. It might be more, it might be less. It all depends on how difficult it is for me to implement this and how good (or bad) the results I am getting are. Dependencies: Technically, I just depend on tasks 1.1 and 1.3, but for orderliness sake, I’ll begin to work on this technique after I finish task 1.4. We can split this task into two subtasks: The obtaining of the original constraint, and the local search. The second subtask depends on the first. 6.7. Studying the improvement of technique #2 After programming technique #2, we need to assess the efficacy of the technique in question. 23
Preprocessing techniques for Integer Linear Programming Effort estimation: Same as with technique #1, something between 5 and 20 hours. Dependencies: I depend on task 1.6. 6.8. Future techniques Depending on the success of the previous technique, I might pivot to a different technique. Effort estimation: I’ll expend the rest of my time on this project on future techniques, so it all depends on how much it takes me to finish everything else. Maybe I’ve got time to do another technique, maybe I don’t. Dependencies: I depend on having done task 1.6, and also to have read the theory behind this hypothetical third technique. 6.9. Memory During the development of this project, I’ll be doing the written memory. Effort estimation: I’ll be writing the memory as I go. I’ve been assuming that the time in implementing and studying the previous techniques already includes the time it’ll take me to write the memory. Dependencies: I depend on having something to write about. 6.10. Updates on tasks The technique #2 was not implemented. Instead, we implemented a different technique based on the local search of solutions, instead of the local search of constraints. This technique is further explained on Section 4.2. 7. Gantt diagram Because this is planning is based on several assumptions, and because the nature of this thesis, the time and task planning is only a reference, and may be subject to change. On the previous section I bundled together research, project planning and the memory as just one task, but for the purposes of this Gantt, I’ve separated them into different tasks. Consult Figure 3 on the next page. 24
Preprocessing techniques for Integer Linear Programming Weeks 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Project planning [90h] First GEP delivery [25h] Second GEP delivery [15h] Third GEP delivery [15h] Fourth GEP delivery [35h] Research [35h] Familiarizing with the code [5h] Researching Technique #1 [15h] Researching Technique #2 [15h] Development [330h] Technique #1 [90h] Technique #2, subtask 1 [140h] Technique #2, subtask 2 [100h] Improvement study [20h] Technique #1 [10h] Technique #2 [10h] Memory [70h] Technique #1 [30h] Technique #2 [40h] Figure 3: Gantt diagram for this project. Self elaborated, made with the pgfgantt library on L A T EX. 25
Preprocessing techniques for Integer Linear Programming Where Ccorresponds with the cost in e/hour, and Tis the time in hours. The subscripts r and e differentiate between “reality” and “estimation”, respectively. These indicators can help to measure deviations in the budget, especially in the human resources costs per task, since that is what has the biggest impact on the project. 9.9. Economic viability This is a research project, and therefore is not made with economic viability in mind. That being said, there’s a fairly small chance that this research ends up giving results that are way better than expected. If that is the case, this project might end up being economically viable by giving Barcelogic an edge on the market of satisfiability solvers. Assuming that is not the case, this project economic viability depends solely on grants from interested parties that make this project possible. Anyway, the economic viability of this project is strictly linked to a tight control of the budget by computing the difference between the expected and real cost, detecting deviations on the budget and correcting them as soon as possible. 9.10. Update on budget 9.10.1. Hardware During the development of this project, I used almost exclusively the laptop. Because of that, the total costs have gone down from 97.80eto 72.88e- or it would’ve if the project lasted as predicted, but because it lasted twice as long, the cost goes up twofold to 145.76e. 9.10.2. Software For verifying correctness I ended up using IMB’s CPLEX. This software was granted to me by my directors, so for me it was free, but I feel like we should add the license to the cost. Lucky for us, CPLEX offers 1-year free licenses for academic purposes, so it’s still free. 9.10.3. Human resources No considerable changes in this regard, besides being twice as much because of the increased length of this project. 9.10.4. Unforeseen events For the unexpected events during the development, no considerable changes in that regard, besides the twofold increase. For the hardware failure part, nothing happened, so that takes 17.75eout the budget. 9.10.5. Indirect costs Because I’ve solely used the laptop for this project, the electricity costs go down by 4.8e. Also, because of confinement, transport costs have been reduced to zero, taking costs down another 159.05e. Both internet and electricity end up taking twice as much, meaning a final cost of 231.16e. 32
Preprocessing techniques for Integer Linear Programming 9.10.6. Contingency No seriously unforeseen event (besides some mild sickness) has occurred during the development of this project, so we can reduce the contingency costs down to zero. 9.10.7. Final Budget To sum up Source Cost Hardware 145.76e Software 0 e Human resources 27347.36 e Unforeseen events 421.94 e Indirect costs 231.16 e Contingency 0 e Total 28146.22 e Table 10: Actual final budget. Self elaborated. 9.10.8. Control management The cost has gone down, but this project was lengthened by 4 additional months, meaning twice the actual time predicted, meaning: Ce= 14629.32/545 = 26.84e/hour Cr= 28146.22/1090 = 25.82e/hour Te= 545 hours Tr= 1090 hours Cost deviation = (Ce−Cr)·Tr= (26.84 −25.82) ·1090 = 1111.8e Efficiency deviation = (Te−Tr)·Ce= (545 −1090) ·26.84 = −14627.8e Meaning that the cost has gone down, but so has done the efficiency, and by a lot. 10. Sustainability report Sustainability is not a topic I think of often, not even close; but it’s inherent to any activity, project, concept, product... And especially everything that involves ICT resources, which are found everywhere in this day and age of information. I find of utmost importance to learn and be cautious about our environment to make this world a better place, to be critical with everything you do, and to try and do things right. It’s true that I’ve never been taught the techniques, concepts or indicators for sustainability, and therefore this analysis will be done with the intent to learn and improve upon myself. By this I mean that this analysis will probably not be close of what an expert on the topic might be able to carry out, but I’ll try my best. 33
Preprocessing techniques for Integer Linear Programming 10.1. Sustainability dimensions 10.1.1. Economic dimension The economic cost needed to develop this project has been estimated to be 14629.323 e, as stated in the Section 9.7 of this document. Of the budget, human resources (13673.678e) are the biggest contributors to this final result, while hardware, indirect costs and contingency only make a small part. All these costs are, in one way or the other, inevitable, although the human resources ones could end up being less if this project is finished in less time than what’s been predicted previously. On the topic of the useful life of the project, it will be useful for as long as these techniques don’t become obsolete by some other techniques. Perhaps, in the future, the state-of-the-art of preprocessing techniques evolves in such a way that these techniques are seen completely useless, or perhaps a paradigmes shift in how we solve these kinds of problems make them obsolete. In any way, it’s all tied on how fast the field of satisfiability solvers or integer linear programming solvers evolves. If the results are positive, and I have a voice on the matter, I would like to publish the results for free, with details of the implementation, to further improve the general knowledge on this topic. This would give state-of-the-art solvers a new set of tools that would allow them to be faster and more efficient, therefore reducing time costs to the users. 10.1.2. Environmental dimension Both computers, together, consume a total of 87.75 kWh, as we’ve concluded in Section 9.5 of this document. Converting that to CO2emissions by multiplying the result by 0.23 according to the MITECO’s report on 2018’s Factor Mix for EDP [12], resulting in a total of 20.18 kg of CO2. Also, I am using public transport to go from Sabadell to Barcelona, producing approximately 0.78 kg of CO2for each travel according to EcoPassenger [13]. I have one meeting per week, each one requiring two travels, meaning a total of 1.56 kg of CO2per week, or approximately 24.96 kg of CO2for the whole project. All of this would make a total CO2footprint of 45.14 kg of CO2for the whole project. I could reduce the carbon footprint by using more the laptop, and less the desktop computer, allowing me to reduce the footprint from 45.15 kg to a minimum of 37.38 kg. The transport costs are considered to be unavoidable, unless I am able to schedule virtual meetings. That wouldn’t help that much, though, since I still need to take public transport to attend class, so even if I could detach these costs from the project, I would still be emitting the same amount of CO2. For the useful life of my project, it might help reduce future carbon footprint by allowing other solvers to be faster, therefore taking less time, and therefore less energy. It’s very difficult to quantify how good this improvement might be, though, since it depends on how good the techniques studied in here are with respect to the already established techniques, for how long it’s useful, by how many solvers implement these techniques, and by how many people end up using those solvers. 34
Preprocessing techniques for Integer Linear Programming 10.1.3. Social dimension Thanks to this project I am learning - and will learn - things about satisfiability, logic in informatics, Operations Research, optimization, and many other topics that I might have never learned about if it weren’t for this project. This project dances in the fine line between efficient and non-efficient algorithms that is the NP-Complete class, and therefore there’s still a lot to learn. In the social field, this project might not only be good for improving the knowledge on preprocessing techniques for these algorithms, but also it would help to point out the flaws and limitations of the current methods for solving these algorithms, which are why they can benefit of these preprocessing techniques in the first place. Regarding the negative social aspects of this project, I can’t really see any big, glaring problem. The only problem I am able to see is that, if these techniques seem too good, they might allow us to break some problems that, before, we though unbreakable. Like, for example, assume that these techniques are so good they allow us to make programs that factorize a number into its prime factors efficiently. Then, the RSA algorithm for cryptography would be compromised, since its main assumption is that that problem cannot be solved efficiently [14]. Of course, I just say this for completion, because I find it highly unlikely (if not impossible) that these techniques can be this good. 10.2. Sustainability matrix To summarize, the following matrix is a synthesis of everything said so far in the topic of sustainability. PPP Useful life Risks Economics 14629.32 eNo profits Not being viable Environment 45.15 kg CO2+ Efficiency Could not improve Social 8/10 6/10 Realistically, none Table 11: Sustainability matrix. Self elaborated. 10.3. Update on sustainability Now, at the end of this project, let’s go back on the topic of sustainability to study the differences between prediction and reality. 10.3.1. Economic dimension As shown in Section 9.10.7 of this document, the economic cost has gone up from 13673.68e to 28146.22e. 10.3.2. Environmental dimension Because of confinement, I didn’t use public transport, therefore reducing the carbon footprint by 24.96 kg of CO2. 35
Preprocessing techniques for Integer Linear Programming Because I have only used my laptop for this project, the carbon footprint from electricity would have reduced from 20.18 to 12.41 kg of CO2if the project lasted as expected, but because it was twice as long the total amount of CO2is multiplied by 2, to a total of 24.82 kg. That is, still, almost half of the original prediction of 45.15 kg. 10.3.3. Social dimension This dimension is one I find somewhat iffy. On one side, I for sure didn’t break RSA with this project, as expected. If anything, the data raises questions on the efficacy of these techniques, while leaving lots of things unanswered. These methods seem to, sometimes, improve the efficiency of the algorithm, while sometimes doing nothing, or even worse than nothing. Further research is required to study the efficacy of these methods in finer detail, but they surely don’t seem game-breaking in any way. 10.3.4. Sustainability matrix To summarize, the following matrix is a synthesis of everything said so far in the topic of sustainability. PPP Useful life Risks Economics 28146.22 eNo profits Not being viable Environment 24.96 kg CO2+ Efficiency Could not improve Social 8/10 6/10 None Table 12: Final sustainability matrix. Self elaborated. 11. Conclusions 11.1. Technical Skills •CCO1.1 Assess the computational complexity of a problem, know algorithmic strategies that could lead to the solution, and recommend, develop and implement the one that grants the best performance according to the established requirements. This project revolves around the P vs NP fringe, trying to more efficiently solve NP Complete and CO-NP complete problems. •CCO1.2: Display knowledge of the theoretical fundamentals of programming languages and the techniques for lexical, syntactic and semantic processing associated with such, and knowing how to apply them in the creation, design and processing of languages. Although it is not a primary objective for this project, I had to develop a parser for the .lp format for Mixed Integer Programming while working on the Local Search method. •CCO1.3: Defining, evaluating and selecting hardware and software development and production platforms for the development of applications and computer services of diverse complexity. 36
Preprocessing techniques for Integer Linear Programming For this project, I used g++ as the compiler because it’s free, and it’s better suited to compile in ARM than other compilers like LLVM, which is important taking into consideration that this project is thought of for cloud computing, and the servers that offer this kind of service are often ARMs. •CCO2.1: Showing knowledge of the fundamentals, the paradigms and the techniques of smart systems, and analyzing, design and make system, services and computer applications that use these techniques in any area of application. Smart systems often need to solve NP-complete problems internally, for which they can benefit from using ILP and SAT solvers.[18] •CCO2.2: The ability to acquire, obtain, formalize and represent the human knowledge in a computable way for the resolution of problems through a computer system in any field of application, particularly in those in which there are related aspects of computation, perception and action in smart environments. SAT, Linear Programming, and every related problem, all focus on the automated resolution of problems through the formalization of data from the real world. •CCO2.4: Displaying knowledge and developing techniques of computational learning; Design and implement applications that use them, including those dedicated to the automatic extraction of information and knowledge in large volumes of data. The first method of Strengthening infers additional knowledge (the new constraints) out of the original constraints. •CCO3.1: Implementing critical code following running time, efficiency and safety criteria. The methods chosen were all chosen because of their reported running time costs, and studies were conducted to study the efficiency and efficacy of such methods. •CCO3.2: Programming taking into consideration the hardware architecture, both in assembly and in high level. Decisions were made for better placement of data into the cache, to reduce overhead in that regard. 11.2. Future Work This project is yet to be completely settled. There are many things still to be done for this project to be done. These things include, but are not limited to: •Fixing the Strengthening method. •Recollecting more data to better study the improvement of the methods. •Implementing the particular hash function described in the paper for the local search. •Integrating both methods with Intsat using Redis. •Implementing parallelism. 37
Preprocessing techniques for Integer Linear Programming 11.3. Special thanks I’d like to thank everyone that is been with me during the long development of this project. First and foremost, I’d like to thank my directors Robert Nieuwenhuis and Enric Carbonell for their help, support, and for wanting to do this project with me in the first place. I’d also like to thank my family that has helped me all throughout this project in every way they could, and gave me the emotional support I needed. Finally, I’d like to thank my friends for having to deal with me being a bore about this project. Special thanks to Pol Martin, Antoni Casas and Adrian Tormos for being kind enough to help me proofread this document. 38
Preprocessing techniques for Integer Linear Programming 12. References [1] Biere, A., Heule, M., Van Maaren, H., Walsh, T. Handbook of Satisfiability, 2009. ISBN-10: 1586039296 [2] H. Dixon Automating pseudo-boolean Inference within a DPLL framework, Ph.D. Dissertation, University of Oregon, December 2004 [3] Randal E. Bryant, Graph-Based Algorithms for Boolean Function Manipulation, IEEE Transactions on Computers, August 1986 [4] Ignasi Ab´ıo, Robert Nieuwenhuis, Albert Oliveras, Enric Rodr´ıguez-Carbonell, Valentin Mayer-Eichberger: A New Look at BDDs for Pseudo-Boolean Constraints. J. Artif. Intell. Res. 45: 443-480 (2012) [5] Armin Biere, Daniel Le Berre, Emmanuel Lonca, Norbert Manthey: Detecting Cardinality Constraints in CNF. SAT 2014: 285-301 [6] El Peri´odico, Un software creado por la UPC verificar´a el sorteo del Mundial de f´utbol, 2017 [7] Barcelogic - Efficiency, simplified. https://barcelogic.com/en/ [8] Medion Erazer P6679 Intel Core i5-7200U/12GB/256GB SSD/GTX950M/15.6” in PcComponentes [9] Ministerio de Empleo y Seguridad Social, Gobierno de Espa˜na, Disposici´on 2856 del BOE n´um. 70 de 2016, article 22 [10] Indeed.es, Comparaci´on de sueldos, buscar sueldos [11] Energuide, How much power does a computer use? And how much CO2 does that represent? [12] MITECO, Informaci´on completa para la toma de decisiones sobre la secci´on de proyectos de absorci´on de di´oxido de carbono y la secci´on de compensaci´on del registro, April 2019 [Pag. 30] [13] HaCon Ingenieurgesellschaft mbH., EcoPassenger [14] RSA Laboratories, The RSA factoring challenge (archived) [15] MIPLIB 2017 – The Mixed Integer Programming Library [16] vector bool - C++ Reference [17] D. Bertsimas et al., A New Local Search Algorithm for Binary Optimization, INFORMS Journal on Computing, 11 April 2012 [18] K losowski, Grzegorz & Koz lowski, Edward Gola, Arkadiusz. Integer Linear Programming in Optimization of Waste After Cutting in the Furniture Manufacturing. 260270. 10.1007978- 3319644653 26. International Conference on Intelligent Systems in Production Engineering and Maintenance (2018) [19] Stephen A. Cook, The complexity of theorem-proving procedures. STOC ’71: Proceedings of the third annual ACM symposium on Theory of computing, May 1971 39
Preprocessing techniques for Integer Linear Programming [20] fast0507 details - miplib.zib.de [21] seymour details - miplib.zib.de 40
Preprocessing techniques for Integer Linear Programming A. Boolean Satisfiability Problem The boolean satisfiability problem (SAT) is a famous problem in computer science. The statement is the following: Given a boolean function f:{0,1}n→ {0,1}expressed in the language of propositional logic, is there some input a∈ {0,1}nsuch that f(a) = 1? This is a well-known NP-Complete problem, and it has been studied and optimized a lot, because of its versatility and because of the shear amount of problems that can be encoded with it. Often, instead of a general formula in propositional logic, the input problem is a formula in Conjunctive Normal Form. In this document, in Section 1.1, I’ve already explained both what CNF is and a common algorithm for solving the CNF-SAT problem (DPLL). A.1. Unit propagation A problem in CNF is expressed as a conjunction of clauses (c1∧... ∧cm), each clause ciis a disjunction of literals (li,1∨... ∨li,k), and each literal is either a variable or the negation of a variable (xor ¯x). If a clause cionly contains a single literal li,1, we say this clause is an unitary clause, or unit for short. If the formula is satisfiable, a unit gives the mandatory value for the variable the literal represents. The unit xmeans xis equal to one, and the unit ¯xmeans it’s equal to zero. If a different clause cjcontains the literal li,1, that clause is automatically true because of the rules of propositional logic, and therefore can be disregarded and erased without affecting the truth table of the formula. If, instead, cjcontains the literal ¯ li,1, we can simplify the clause down via resolution, turning cj=¯ li,1∨Cinto cj=C. If Ccontained only a single literal lj,1,cjturns into a new unit. The process of repeating this procedure of disregarding clauses that contain the literals that are also present in units, and simplifying down clauses via resolution using these same units is called unit propagation. Unit propagation is a very powerful tool because of its simplicity and efficiency. This is important because to implement DPLL in Binary Linear Programming, we will need an equivalent to this method for it. For an example on unit propagation, let a CNF be made of the following clauses: 1. x1 2. ¯x1∨x2 3. x1∨¯x2 4. ¯x1∨¯x3 5. ¯x2∨x3∨x4 41
Preprocessing techniques for Integer Linear Programming problemName Q opt. timeCPLEX iniCost LSCost percent timeLS air04.lp 1 0 9.38 57894 57894 0 3.464 air04.lp 2 0 9.38 57894 57894 0 2.978 air04.lp 5 0 9.38 57894 57894 0 411.153 air04.lp 10 0 9.38 57894 57894 0 600.48 air04.lp 50 0 9.38 57894 57894 0 603.253 mitre.lp 1 115155 0.77 115965 115965 0 1.361 mitre.lp 2 115155 0.77 115965 115965 0 1.35 mitre.lp 5 115155 0.77 115965 115965 0 1.337 mitre.lp 10 115155 0.77 115965 115965 0 1.835 mitre.lp 50 115155 0.77 115965 115965 0 1.394 p0201.lp 1 7615 0.33 10365 10365 0 0.001 p0201.lp 2 7615 0.33 10365 10365 0 0.001 p0201.lp 5 7615 0.33 10365 10365 0 0.001 p0201.lp 10 7615 0.33 10365 10365 0 0.02 p0201.lp 50 7615 0.33 10365 9475 32.3636 600.005 p0201.lp 1 7615 0.33 10315 10315 0 0.001 p0201.lp 2 7615 0.33 10315 10315 0 0.001 p0201.lp 5 7615 0.33 10315 10315 0 0.002 p0201.lp 10 7615 0.33 10315 10315 0 0.019 p0201.lp 50 7615 0.33 10315 9475 31.1111 600.001 p0201.lp 1 7615 0.33 8490 8490 0 0.001 p0201.lp 2 7615 0.33 8490 8490 0 0.001 p0201.lp 5 7615 0.33 8490 8490 0 0.001 p0201.lp 10 7615 0.33 8490 8490 0 0.022 p0201.lp 50 7615 0.33 8490 8390 11.4285 600.001 p2756.lp 1 3124 0.52 16684 16684 0 0.065 p2756.lp 2 3124 0.52 16684 16684 0 0.085 p2756.lp 5 3124 0.52 16684 16684 0 0.07 p2756.lp 10 3124 0.52 16684 16684 0 0.314 p2756.lp 50 3124 0.52 16684 16684 0 600.003 p2756.lp 1 3124 0.52 3872 3872 0 0.11 p2756.lp 2 3124 0.52 3872 3872 0 0.123 p2756.lp 5 3124 0.52 3872 3872 0 0.092 p2756.lp 10 3124 0.52 3872 3872 0 0.335 p2756.lp 50 3124 0.52 3872 3872 0 600.006 Table 16: Multiple runs of local search solving a small selection of problems in MIPLIB. If the same problem is shown twice with the same values for Q means that we’re testing execution with a different initial solution. Self elaborated. For these not-so well behaved cases, whether the algorithm finds a better solution than the original is pretty arbitrary, often requiring large values for Q and long periods of time, and sometimes even that is not enough. There were other relatively well-behaved examples, like the aforementioned fast0507.lp and seymour.lp showcased in Section 4.2.4 of this document. 48