检测部分代码

 1 if (cplex.RefineConflict(constraints,prefs))
2 {
3 Cplex.ConflictStatus[] conflicts = cplex.GetConflict(constraints);
4 for (int i = 0; i < conflicts.Length;i++ )
5 {
6 if (conflicts[i]==Cplex.ConflictStatus.Member)
7 System.Console.WriteLine(" Proved : " + constraints[i]);
8 else if (conflicts[i]==Cplex.ConflictStatus.PossibleMember)
9 System.Console.WriteLine(" Possible : " + constraints[i]);
10 }
11 }

  

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2021-11-16
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-31
  • 2021-09-07
  • 2021-05-03
  • 2021-07-05
  • 2021-05-23
  • 2022-12-23
  • 2022-03-09
相关资源
相似解决方案