Beispiel #1
0
 public void UpdateMaximizeSegmentDuration(double value)
 {
     if (rowMaximizeSegment == -1)
     {
         rowMaximizeSegment = lp.AddConstraint(true);
     }
     lp.SetConstraintRHS(rowMaximizeSegment, lp.GetConstraintRHS(rowMaximizeSegment) - value);
     compactSolution = null;
     needsDual       = true;
 }
Beispiel #2
0
 public void SetConstraintRHS(int index, double value)
 {
     lp.SetConstraintRHS(index, value);
 }