+ added configuration variables to main config file
[qpalma.git] / qpalma / SIQP_CPX.py
index a04c77d..3ca654a 100644 (file)
@@ -88,15 +88,18 @@ class SIQPSolver(SIQP):
       self.ub = FloatMatrix([self.Inf] * self.numVariables).data
       self.lb = FloatMatrix([-self.Inf] * self.numFeatures + [0.0]*self.numExamples).data
 
-      # set intron length to zero
+      # if we disable to intron length model we set the first boundaries of the
+      # intron support points to 0.0
+      #
       #import pdb
       #pdb.set_trace()
 
-      #self.ub[0] = 0.0
-      #self.ub[1] = 0.0
+      if not run['enable_intron_length']:
+         self.ub[0] = 0.0
+         self.ub[1] = 0.0
 
-      #self.lb[0] = 0.0
-      #self.lb[1] = 0.0
+         self.lb[0] = 0.0
+         self.lb[1] = 0.0
 
       #pdb.set_trace()