コード例 #1
0
ファイル: SolverLP.cs プロジェクト: say1981/Rawr
 public void UpdateMaximizeSegmentColumn(int col)
 {
     if (col == -1)
     {
         return;
     }
     if (rowMaximizeSegment == -1)
     {
         rowMaximizeSegment = lp.AddConstraint(true);
     }
     lp.SetConstraintElement(rowMaximizeSegment, col, lp.GetConstraintElement(rowMaximizeSegment, col) - 1.0 * columnScale[col]);
     compactSolution = null;
     needsDual       = true;
 }