Changeset 1978


Ignore:
Timestamp:
Dec 10, 2009 11:29:33 PM (11 years ago)
Author:
jwatson
Message:

Eliminated exception-handling logic when loading user-defined extension modules in PH. The range of exceptions is too large, and for debugging purposes, it is more useful to see the raw trace output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/coopr/pysp/ph.py

    r1956 r1978  
    11921192                                 ub = x.ub()
    11931193
     1194                              if x.lb == x.ub:
     1195                                 print "***WARNING - LB EQUALS UB"
     1196                                 print "VALUE=",x.lb
     1197                                 print "VARIABLE="+variable_name+indexToString(index)
     1198
    11941199                              node_min = node_min_parameter[index]()
    11951200                              node_max = node_max_parameter[index]()
     
    12071212                              else:
    12081213                                 raise ValueError, "A breakpoint distribution strategy="+str(self._breakpoint_strategy)+" is currently not supported within PH!"
     1214
     1215                              print "BREAKPOINTS=",breakpoints
    12091216
    12101217                              for i in range(0,len(breakpoints)-1):
Note: See TracChangeset for help on using the changeset viewer.