[Dip-tickets] [Dip] #22: Artificial variables in createMasterProblem cause crash in isParallel

Dip coin-trac at coin-or.org
Tue May 25 21:46:06 EDT 2010


#22: Artificial variables in createMasterProblem cause crash in isParallel
--------------------+-------------------------------------------------------
Reporter:  mosu001  |       Type:  defect
  Status:  new      |   Priority:  major 
 Version:           |   Keywords:        
--------------------+-------------------------------------------------------
 This is in version 0.8.6.

 Artificial variables created at the end of the DW formulation in
 DecompAlgo::createMasterProblem in for loop starting at line 820 have a
 zero length column when being checked in DecompVarPool::isParallel. This
 causes a crash in while loop starting on line 98.

 Recommend either changing while condition to

 index2 < len2 && index1 < len1

 or (if not too many comparisons wanted) take break statement

          if(index2 >= len2 || index1 >= len1)
             break;

 out of if (j1==j2) block and placing directly after while(1)

-- 
Ticket URL: <https://projects.coin-or.org/Dip/ticket/22>
Dip <https://projects.coin-or.org/Dip>
An extensible software framework for implementing decompositon-based bounding algorithms for use in solving large-scale discrete optimization problems.



More information about the Dip-tickets mailing list