add integer and linear programming test for dotnet python and java

This commit is contained in:
Andrea Sgattoni
2023-11-13 15:29:08 +01:00
parent 4627ddf948
commit 18468fe1e6
6 changed files with 13 additions and 0 deletions

View File

@@ -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");
}
}

View File

@@ -160,6 +160,7 @@ public class CsLinearProgramming
RunLinearProgrammingExample("GLOP");
RunLinearProgrammingExample("GLPK_LP");
RunLinearProgrammingExample("CLP");
RunLinearProgrammingExample("XPRESS_LP");
RunLinearProgrammingExampleNaturalApi("GLOP", true);
RunLinearProgrammingExampleNaturalApi("GLPK_LP", false);

View File

@@ -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");
}
}

View File

@@ -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);
}
}

View File

@@ -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():

View File

@@ -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__":