add integer and linear programming test for dotnet python and java
This commit is contained in:
@@ -117,6 +117,8 @@ public class CsIntegerProgramming
|
|||||||
RunIntegerProgrammingExample("SAT");
|
RunIntegerProgrammingExample("SAT");
|
||||||
Console.WriteLine("---- Linear programming example with GUROBI ----");
|
Console.WriteLine("---- Linear programming example with GUROBI ----");
|
||||||
RunIntegerProgrammingExample("GUROBI");
|
RunIntegerProgrammingExample("GUROBI");
|
||||||
|
Console.WriteLine("---- Linear programming example with XPRESS ----");
|
||||||
|
RunIntegerProgrammingExample("XPRESS");
|
||||||
Console.WriteLine("---- Integer programming example (Natural API) with GLPK ----");
|
Console.WriteLine("---- Integer programming example (Natural API) with GLPK ----");
|
||||||
RunIntegerProgrammingExampleNaturalApi("GLPK");
|
RunIntegerProgrammingExampleNaturalApi("GLPK");
|
||||||
Console.WriteLine("---- Linear programming example (Natural API) with CBC ----");
|
Console.WriteLine("---- Linear programming example (Natural API) with CBC ----");
|
||||||
@@ -127,5 +129,7 @@ public class CsIntegerProgramming
|
|||||||
RunIntegerProgrammingExampleNaturalApi("SAT");
|
RunIntegerProgrammingExampleNaturalApi("SAT");
|
||||||
Console.WriteLine("---- Linear programming example (Natural API) with GUROBI ----");
|
Console.WriteLine("---- Linear programming example (Natural API) with GUROBI ----");
|
||||||
RunIntegerProgrammingExampleNaturalApi("GUROBI");
|
RunIntegerProgrammingExampleNaturalApi("GUROBI");
|
||||||
|
Console.WriteLine("---- Linear programming example (Natural API) with XPRESS ----");
|
||||||
|
RunIntegerProgrammingExampleNaturalApi("XPRESS");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ public class CsLinearProgramming
|
|||||||
RunLinearProgrammingExample("GLOP");
|
RunLinearProgrammingExample("GLOP");
|
||||||
RunLinearProgrammingExample("GLPK_LP");
|
RunLinearProgrammingExample("GLPK_LP");
|
||||||
RunLinearProgrammingExample("CLP");
|
RunLinearProgrammingExample("CLP");
|
||||||
|
RunLinearProgrammingExample("XPRESS_LP");
|
||||||
|
|
||||||
RunLinearProgrammingExampleNaturalApi("GLOP", true);
|
RunLinearProgrammingExampleNaturalApi("GLOP", true);
|
||||||
RunLinearProgrammingExampleNaturalApi("GLPK_LP", false);
|
RunLinearProgrammingExampleNaturalApi("GLPK_LP", false);
|
||||||
|
|||||||
@@ -84,5 +84,7 @@ public class IntegerProgramming {
|
|||||||
runIntegerProgrammingExample("GLPK");
|
runIntegerProgrammingExample("GLPK");
|
||||||
System.out.println("---- Integer programming example with CP-SAT ----");
|
System.out.println("---- Integer programming example with CP-SAT ----");
|
||||||
runIntegerProgrammingExample("SAT");
|
runIntegerProgrammingExample("SAT");
|
||||||
|
System.out.println("---- Integer programming example with XPRESS ----");
|
||||||
|
runIntegerProgrammingExample("XPRESS");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,5 +116,7 @@ public class LinearProgramming {
|
|||||||
runLinearProgrammingExample("GLOP", true);
|
runLinearProgrammingExample("GLOP", true);
|
||||||
System.out.println("---- Linear programming example with CLP ----");
|
System.out.println("---- Linear programming example with CLP ----");
|
||||||
runLinearProgrammingExample("CLP", false);
|
runLinearProgrammingExample("CLP", false);
|
||||||
|
System.out.println("---- Linear programming example with XPRESS ----");
|
||||||
|
runLinearProgrammingExample("XPRESS", false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ def RunAllIntegerExampleNaturalLanguageAPI():
|
|||||||
# RunIntegerExampleNaturalLanguageAPI('CBC')
|
# RunIntegerExampleNaturalLanguageAPI('CBC')
|
||||||
RunIntegerExampleNaturalLanguageAPI("SCIP")
|
RunIntegerExampleNaturalLanguageAPI("SCIP")
|
||||||
RunIntegerExampleNaturalLanguageAPI("SAT")
|
RunIntegerExampleNaturalLanguageAPI("SAT")
|
||||||
|
RunIntegerExampleNaturalLanguageAPI("XPRESS")
|
||||||
|
|
||||||
|
|
||||||
def RunAllIntegerExampleCppStyleAPI():
|
def RunAllIntegerExampleCppStyleAPI():
|
||||||
@@ -110,6 +111,7 @@ def RunAllIntegerExampleCppStyleAPI():
|
|||||||
# RunIntegerExampleCppStyleAPI('CBC')
|
# RunIntegerExampleCppStyleAPI('CBC')
|
||||||
RunIntegerExampleCppStyleAPI("SCIP")
|
RunIntegerExampleCppStyleAPI("SCIP")
|
||||||
RunIntegerExampleCppStyleAPI("SAT")
|
RunIntegerExampleCppStyleAPI("SAT")
|
||||||
|
RunIntegerExampleCppStyleAPI("XPRESS")
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
@@ -138,11 +138,13 @@ def main():
|
|||||||
RunLinearExampleNaturalLanguageAPI("GLPK_LP")
|
RunLinearExampleNaturalLanguageAPI("GLPK_LP")
|
||||||
RunLinearExampleNaturalLanguageAPI("CLP")
|
RunLinearExampleNaturalLanguageAPI("CLP")
|
||||||
RunLinearExampleNaturalLanguageAPI("PDLP")
|
RunLinearExampleNaturalLanguageAPI("PDLP")
|
||||||
|
RunLinearExampleNaturalLanguageAPI("XPRESS")
|
||||||
|
|
||||||
RunLinearExampleCppStyleAPI("GLOP")
|
RunLinearExampleCppStyleAPI("GLOP")
|
||||||
RunLinearExampleCppStyleAPI("GLPK_LP")
|
RunLinearExampleCppStyleAPI("GLPK_LP")
|
||||||
RunLinearExampleCppStyleAPI("CLP")
|
RunLinearExampleCppStyleAPI("CLP")
|
||||||
RunLinearExampleCppStyleAPI("PDLP")
|
RunLinearExampleCppStyleAPI("PDLP")
|
||||||
|
RunLinearExampleCppStyleAPI("XPRESS")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user