예제 #1
0
파일: SolverLP.cs 프로젝트: say1981/Rawr
 public void UpdateMaximizeSegmentDuration(double value)
 {
     if (rowMaximizeSegment == -1)
     {
         rowMaximizeSegment = lp.AddConstraint(true);
     }
     lp.SetConstraintRHS(rowMaximizeSegment, lp.GetConstraintRHS(rowMaximizeSegment) - value);
     compactSolution = null;
     needsDual       = true;
 }