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