Skip to content
GitLab
Explore
Sign in
Show whitespace changes
Inline
Side-by-side
Some changes are not shown.
For a faster browsing experience, only
20 of 534+
files are shown.
libs/or-tools-src-ubuntu/examples/dotnet/crypto.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="crypto.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/cscvrptw.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="cscvrptw.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/csdiet.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="csdiet.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/csflow.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="csflow.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/csintegerprogramming.cs
View file @
a9bd42a2
...
...
@@ -106,19 +106,24 @@ public class CsIntegerProgramming
static
void
Main
()
{
Console
.
WriteLine
(
"---- Integer programming example with GLPK ----"
);
RunIntegerProgrammingExample
(
"GLPK
_MIXED_INTEGER_PROGRAMMING
"
);
RunIntegerProgrammingExample
(
"GLPK"
);
Console
.
WriteLine
(
"---- Linear programming example with CBC ----"
);
RunIntegerProgrammingExample
(
"CBC
_MIXED_INTEGER_PROGRAMMING
"
);
RunIntegerProgrammingExample
(
"CBC"
);
Console
.
WriteLine
(
"---- Linear programming example with SCIP ----"
);
RunIntegerProgrammingExample
(
"SCIP_MIXED_INTEGER_PROGRAMMING"
);
RunIntegerProgrammingExample
(
"SCIP"
);
Console
.
WriteLine
(
"---- Linear programming example with SAT ----"
);
RunIntegerProgrammingExample
(
"SAT"
);
Console
.
WriteLine
(
"---- Integer programming example (Natural API) with GLPK ----"
);
RunIntegerProgrammingExampleNaturalApi
(
"GLPK
_MIXED_INTEGER_PROGRAMMING
"
);
RunIntegerProgrammingExampleNaturalApi
(
"GLPK"
);
Console
.
WriteLine
(
"---- Linear programming example (Natural API) with CBC ----"
);
RunIntegerProgrammingExampleNaturalApi
(
"CBC
_MIXED_INTEGER_PROGRAMMING
"
);
RunIntegerProgrammingExampleNaturalApi
(
"CBC"
);
Console
.
WriteLine
(
"---- Linear programming example (Natural API) with SCIP ----"
);
RunIntegerProgrammingExampleNaturalApi
(
"SCIP_MIXED_INTEGER_PROGRAMMING"
);
RunIntegerProgrammingExampleNaturalApi
(
"SCIP"
);
Console
.
WriteLine
(
"---- Linear programming example (Natural API) with SAT ----"
);
RunIntegerProgrammingExampleNaturalApi
(
"SAT"
);
}
}
libs/or-tools-src-ubuntu/examples/dotnet/csintegerprogramming.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="csintegerprogramming.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/csknapsack.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="csknapsack.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/cslinearprogramming.cs
View file @
a9bd42a2
...
...
@@ -18,6 +18,8 @@ public class CsLinearProgramming
{
private
static
void
RunLinearProgrammingExample
(
String
solverType
)
{
Console
.
WriteLine
(
$"---- Linear programming example with
{
solverType
}
----"
);
Solver
solver
=
Solver
.
CreateSolver
(
"IntegerProgramming"
,
solverType
);
if
(
solver
==
null
)
{
...
...
@@ -96,6 +98,9 @@ public class CsLinearProgramming
private
static
void
RunLinearProgrammingExampleNaturalApi
(
String
solverType
,
bool
printModel
)
{
Console
.
WriteLine
(
$"---- Linear programming example (Natural API) with
{
solverType
}
----"
);
Solver
solver
=
Solver
.
CreateSolver
(
"IntegerProgramming"
,
solverType
);
if
(
solver
==
null
)
{
...
...
@@ -157,20 +162,12 @@ public class CsLinearProgramming
static
void
Main
()
{
Console
.
WriteLine
(
"---- Linear programming example with GLOP ----"
);
RunLinearProgrammingExample
(
"GLOP_LINEAR_PROGRAMMING"
);
Console
.
WriteLine
(
"---- Linear programming example with GLPK ----"
);
RunLinearProgrammingExample
(
"GLPK_LINEAR_PROGRAMMING"
);
Console
.
WriteLine
(
"---- Linear programming example with CLP ----"
);
RunLinearProgrammingExample
(
"CLP_LINEAR_PROGRAMMING"
);
Console
.
WriteLine
(
"---- Linear programming example (Natural API) with GLOP ----"
);
RunLinearProgrammingExampleNaturalApi
(
"GLOP_LINEAR_PROGRAMMING"
,
true
);
Console
.
WriteLine
(
"---- Linear programming example (Natural API) with GLPK ----"
);
RunLinearProgrammingExampleNaturalApi
(
"GLPK_LINEAR_PROGRAMMING"
,
false
);
Console
.
WriteLine
(
"---- Linear programming example (Natural API) with CLP ----"
);
RunLinearProgrammingExampleNaturalApi
(
"CLP_LINEAR_PROGRAMMING"
,
false
);
RunLinearProgrammingExample
(
"GLOP"
);
RunLinearProgrammingExample
(
"GLPK_LP"
);
RunLinearProgrammingExample
(
"CLP"
);
RunLinearProgrammingExampleNaturalApi
(
"GLOP"
,
true
);
RunLinearProgrammingExampleNaturalApi
(
"GLPK_LP"
,
false
);
RunLinearProgrammingExampleNaturalApi
(
"CLP"
,
false
);
}
}
libs/or-tools-src-ubuntu/examples/dotnet/cslinearprogramming.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="cslinearprogramming.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/csls_api.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="csls_api.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/csrabbitspheasants.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="csrabbitspheasants.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/cstsp.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="cstsp.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/curious_set_of_integers.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="curious_set_of_integers.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/debruijn.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="debruijn.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/discrete_tomography.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="discrete_tomography.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/divisible_by_9_through_1.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="divisible_by_9_through_1.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/dudeney.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="dudeney.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/einav_puzzle2.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="einav_puzzle2.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/eq10.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="eq10.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
libs/or-tools-src-ubuntu/examples/dotnet/eq20.csproj
View file @
a9bd42a2
...
...
@@ -19,6 +19,6 @@
<ItemGroup>
<Compile Include="eq20.cs" />
<PackageReference Include="Google.OrTools" Version="7.
7
.*" />
<PackageReference Include="Google.OrTools" Version="7.
8
.*" />
</ItemGroup>
</Project>
Prev
1
2
3
4
5
6
7
8
9
10
…
27
Next