dotnet: rework example layout
- Fix examples using MPConstraint::Activity instead of MPSolver - Move all examples to exmaples/dotnet - remove netfx sub-directories - Add all examples to target test_dotnet - still few disabled since they are too long - Add tools/generate_examples_csproj.sh to generate .*proj files
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
OR_TOOLS_MAJOR = 6
|
||||
OR_TOOLS_MINOR = 8
|
||||
OR_TOOLS_MAJOR=6
|
||||
OR_TOOLS_MINOR=8
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
function(get_version_from_file VERSION_MAJOR VERSION_MINOR VERSION_PATCH)
|
||||
file(STRINGS "Version.txt" VERSION_STR)
|
||||
foreach(STR ${VERSION_STR})
|
||||
if(${STR} MATCHES "OR_TOOLS_MAJOR = (.*)")
|
||||
if(${STR} MATCHES "OR_TOOLS_MAJOR=(.*)")
|
||||
set(${VERSION_MAJOR} ${CMAKE_MATCH_1} PARENT_SCOPE)
|
||||
endif()
|
||||
if(${STR} MATCHES "OR_TOOLS_MINOR = (.*)")
|
||||
if(${STR} MATCHES "OR_TOOLS_MINOR=(.*)")
|
||||
set(${VERSION_MINOR} ${CMAKE_MATCH_1} PARENT_SCOPE)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
20
examples/dotnet/3_jugs_regular.csproj
Normal file
20
examples/dotnet/3_jugs_regular.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="3_jugs_regular.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
19
examples/dotnet/Program.fsproj
Normal file
19
examples/dotnet/Program.fsproj
Normal file
@@ -0,0 +1,19 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.fs" />
|
||||
<PackageReference Include="Google.OrTools.FSharp" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,21 +1,17 @@
|
||||
# Dotnet Core examples
|
||||
The following examples showcase how to use OrTools.
|
||||
The project solution has examples for both C# and F#.
|
||||
|
||||
The following examples showcase how to use OrTools. The project solution has examples for both C# and F#.
|
||||
We recommend that all projects you create target `netcoreapp2.1`,
|
||||
as this allows you to compile for various frameworks and
|
||||
keep up-to-date with the latest frameworks.
|
||||
|
||||
We recommend that all projects you create target `netcoreapp2.0` as this allows you to compile for various frameworks and keep up-to-date with the latest frameworks.
|
||||
Wherever you have or-tools installed, be sure to `PackageReference` the `Google.OrTools`
|
||||
from the project file.
|
||||
|
||||
Wherever you have ortools installed, be sure to reference the `Google.OrTools.dll` from the project file. You will also need to reference the library folder housing native libraries.
|
||||
## Execution
|
||||
Running the examples will involve compiling them, then running them. You can run the following command:
|
||||
```bash
|
||||
dotnet run --project examples/dotnet/<example>.csproj
|
||||
```
|
||||
|
||||
### Linux
|
||||
To reference a particular folder on linux, you can either: explicitly set the **LD_LIBRARY_PATH**; or create a new configuration file with the path of the library folder in `/etc/ld.so.conf.d/` and then run `sudo ldconfig`. The former will set the path on a system level so that you don't have to use the environment.
|
||||
|
||||
### MacOS
|
||||
To reference a particular folder on linux, you can explicitly set the **DYLD_LIBRARY_PATH**
|
||||
|
||||
## CSharp/FSharp project examples
|
||||
|
||||
By default all the examples are compiled in a console application with the startup object being the **Classname.Main** so that when compiled the entrypoint will be known.
|
||||
|
||||
## NetFx/FSharp compiler examples
|
||||
|
||||
Should you have another **netfx** you can compile individual file examples. Please see readme in the individual folders for the target language.
|
||||
|
||||
20
examples/dotnet/TaskScheduling.csproj
Normal file
20
examples/dotnet/TaskScheduling.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="TaskScheduling.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,9 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
20
examples/dotnet/a_round_of_golf.csproj
Normal file
20
examples/dotnet/a_round_of_golf.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="a_round_of_golf.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/all_interval.csproj
Normal file
20
examples/dotnet/all_interval.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="all_interval.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/alldifferent_except_0.csproj
Normal file
20
examples/dotnet/alldifferent_except_0.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="alldifferent_except_0.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/assignment.csproj
Normal file
20
examples/dotnet/assignment.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="assignment.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/broken_weights.csproj
Normal file
20
examples/dotnet/broken_weights.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="broken_weights.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/bus_schedule.csproj
Normal file
20
examples/dotnet/bus_schedule.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="bus_schedule.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/circuit.csproj
Normal file
20
examples/dotnet/circuit.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="circuit.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/circuit2.csproj
Normal file
20
examples/dotnet/circuit2.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="circuit2.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/coins3.csproj
Normal file
20
examples/dotnet/coins3.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="coins3.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/coins_grid.csproj
Normal file
20
examples/dotnet/coins_grid.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="coins_grid.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/combinatorial_auction2.csproj
Normal file
20
examples/dotnet/combinatorial_auction2.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="combinatorial_auction2.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/contiguity_regular.csproj
Normal file
20
examples/dotnet/contiguity_regular.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="contiguity_regular.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/contiguity_transition.csproj
Normal file
20
examples/dotnet/contiguity_transition.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="contiguity_transition.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/costas_array.csproj
Normal file
20
examples/dotnet/costas_array.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="costas_array.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/covering_opl.csproj
Normal file
20
examples/dotnet/covering_opl.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="covering_opl.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/crew.csproj
Normal file
20
examples/dotnet/crew.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="crew.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/crossword.csproj
Normal file
20
examples/dotnet/crossword.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="crossword.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/crypta.csproj
Normal file
20
examples/dotnet/crypta.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="crypta.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/crypto.csproj
Normal file
20
examples/dotnet/crypto.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="crypto.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/cscvrptw.csproj
Normal file
20
examples/dotnet/cscvrptw.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="cscvrptw.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/csflow.csproj
Normal file
20
examples/dotnet/csflow.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="csflow.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/csfz.csproj
Normal file
20
examples/dotnet/csfz.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="csfz.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,34 +0,0 @@
|
||||
# Examples of using or-tools in C#
|
||||
|
||||
This file describes how to use the or-tools .NET binary archive in C#
|
||||
|
||||
## Execution
|
||||
|
||||
Running the examples will involve compiling them, then running them. You can run the following command for your target operating system.
|
||||
|
||||
For example you can compile and run `csflow.cs`. This assumes you have the archive library in a folder called `bin`.
|
||||
|
||||
|
||||
### Windows (32 bit)
|
||||
```
|
||||
csc /target:exe /out:bin\csflow.exe /platform:x86 /lib:bin /r:Google.OrTools.dll examples\csharp\csflow.cs
|
||||
bin\csflow.exe
|
||||
```
|
||||
|
||||
### Windows (64 bit)
|
||||
```
|
||||
csc /target:exe /out:bin/csflow.exe /platform:x64 /lib:bin /r:Google.OrTools.dll examples\csharp\csflow.cs
|
||||
bin\csflow.exe
|
||||
```
|
||||
|
||||
### Linux (framework 4.6+ via mono must be installed)
|
||||
```
|
||||
mcs /target:exe /out:bin/csflow.exe /platform:anycpu /lib:bin /r:Google.OrTools.dll examples/csharp/csflow.cs
|
||||
mono bin/csflow.exe
|
||||
```
|
||||
|
||||
### Mac OS X (framework 4.6+ via mono must be installed)
|
||||
```
|
||||
mcs /target:exe /out:bin/csflow.exe /platform:anycpu /lib:bin /r:Google.OrTools.dll examples/csharp/csflow.cs
|
||||
DYLD_FALLBACK_LIBRARY_PATH=lib mono64 bin/csflow.exe
|
||||
```
|
||||
@@ -1,263 +0,0 @@
|
||||
//
|
||||
// Copyright 2012 Hakan Kjellerstrand
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Google.OrTools.ConstraintSolver;
|
||||
|
||||
public class APuzzle
|
||||
{
|
||||
/**
|
||||
*
|
||||
* From "God plays dice"
|
||||
* "A puzzle"
|
||||
* http://gottwurfelt.wordpress.com/2012/02/22/a-puzzle/
|
||||
* And the sequel "Answer to a puzzle"
|
||||
* http://gottwurfelt.wordpress.com/2012/02/24/an-answer-to-a-puzzle/
|
||||
*
|
||||
* This problem instance was taken from the latter blog post.
|
||||
* (Problem 1)
|
||||
*
|
||||
* """
|
||||
* 8809 = 6
|
||||
* 7111 = 0
|
||||
* 2172 = 0
|
||||
* 6666 = 4
|
||||
* 1111 = 0
|
||||
* 3213 = 0
|
||||
* 7662 = 2
|
||||
* 9312 = 1
|
||||
* 0000 = 4
|
||||
* 2222 = 0
|
||||
* 3333 = 0
|
||||
* 5555 = 0
|
||||
* 8193 = 3
|
||||
* 8096 = 5
|
||||
* 7777 = 0
|
||||
* 9999 = 4
|
||||
* 7756 = 1
|
||||
* 6855 = 3
|
||||
* 9881 = 5
|
||||
* 5531 = 0
|
||||
*
|
||||
* 2581 = ?
|
||||
* """
|
||||
*
|
||||
* Note:
|
||||
* This model yields 10 solutions, since x4 is not
|
||||
* restricted in the constraints.
|
||||
* All solutions has x assigned to the correct result.
|
||||
*
|
||||
*
|
||||
* (Problem 2)
|
||||
* The problem stated in "A puzzle"
|
||||
* http://gottwurfelt.wordpress.com/2012/02/22/a-puzzle/
|
||||
* is
|
||||
* """
|
||||
* 8809 = 6
|
||||
* 7662 = 2
|
||||
* 9312 = 1
|
||||
* 8193 = 3
|
||||
* 8096 = 5
|
||||
* 7756 = 1
|
||||
* 6855 = 3
|
||||
* 9881 = 5
|
||||
*
|
||||
* 2581 = ?
|
||||
* """
|
||||
* This problem instance yields two different solutions of x,
|
||||
* one is the same (correct) as for the above problem instance,
|
||||
* and one is not.
|
||||
* This is because here x0,x1,x4 and x9 are underdefined.
|
||||
*
|
||||
*
|
||||
*/
|
||||
private static void Solve(int p = 1)
|
||||
{
|
||||
Solver solver = new Solver("APuzzle");
|
||||
|
||||
Console.WriteLine("\nSolving p{0}", p);
|
||||
|
||||
|
||||
//
|
||||
// Data
|
||||
//
|
||||
int n = 10;
|
||||
|
||||
//
|
||||
// Decision variables
|
||||
//
|
||||
IntVar x0 = solver.MakeIntVar(0, n-1, "x0");
|
||||
IntVar x1 = solver.MakeIntVar(0, n-1, "x1");
|
||||
IntVar x2 = solver.MakeIntVar(0, n-1, "x2");
|
||||
IntVar x3 = solver.MakeIntVar(0, n-1, "x3");
|
||||
IntVar x4 = solver.MakeIntVar(0, n-1, "x4");
|
||||
IntVar x5 = solver.MakeIntVar(0, n-1, "x5");
|
||||
IntVar x6 = solver.MakeIntVar(0, n-1, "x6");
|
||||
IntVar x7 = solver.MakeIntVar(0, n-1, "x7");
|
||||
IntVar x8 = solver.MakeIntVar(0, n-1, "x8");
|
||||
IntVar x9 = solver.MakeIntVar(0, n-1, "x9");
|
||||
|
||||
IntVar[] all = {x0,x1,x2,x3,x4,x5,x6,x7,x8,x9};
|
||||
|
||||
// The unknown, i.e. 2581 = x
|
||||
IntVar x = solver.MakeIntVar(0, n-1, "x");
|
||||
|
||||
|
||||
//
|
||||
// Constraints
|
||||
//
|
||||
|
||||
// Both problem are here shown in two
|
||||
// approaches:
|
||||
// - using equations
|
||||
// - using a a matrix and Sum of each row
|
||||
|
||||
if (p == 1) {
|
||||
|
||||
// Problem 1
|
||||
solver.Add(x8+x8+x0+x9 == 6);
|
||||
solver.Add(x7+x1+x1+x1 == 0);
|
||||
solver.Add(x2+x1+x7+x2 == 0);
|
||||
solver.Add(x6+x6+x6+x6 == 4);
|
||||
solver.Add(x1+x1+x1+x1 == 0);
|
||||
solver.Add(x3+x2+x1+x3 == 0);
|
||||
solver.Add(x7+x6+x6+x2 == 2);
|
||||
solver.Add(x9+x3+x1+x2 == 1);
|
||||
solver.Add(x0+x0+x0+x0 == 4);
|
||||
solver.Add(x2+x2+x2+x2 == 0);
|
||||
solver.Add(x3+x3+x3+x3 == 0);
|
||||
solver.Add(x5+x5+x5+x5 == 0);
|
||||
solver.Add(x8+x1+x9+x3 == 3);
|
||||
solver.Add(x8+x0+x9+x6 == 5);
|
||||
solver.Add(x7+x7+x7+x7 == 0);
|
||||
solver.Add(x9+x9+x9+x9 == 4);
|
||||
solver.Add(x7+x7+x5+x6 == 1);
|
||||
solver.Add(x6+x8+x5+x5 == 3);
|
||||
solver.Add(x9+x8+x8+x1 == 5);
|
||||
solver.Add(x5+x5+x3+x1 == 0);
|
||||
|
||||
// The unknown
|
||||
solver.Add(x2+x5+x8+x1 == x);
|
||||
|
||||
} else if (p == 2) {
|
||||
|
||||
// Another representation of Problem 1
|
||||
int[,] problem1 = {
|
||||
{8,8,0,9, 6},
|
||||
{7,1,1,1, 0},
|
||||
{2,1,7,2, 0},
|
||||
{6,6,6,6, 4},
|
||||
{1,1,1,1, 0},
|
||||
{3,2,1,3, 0},
|
||||
{7,6,6,2, 2},
|
||||
{9,3,1,2, 1},
|
||||
{0,0,0,0, 4},
|
||||
{2,2,2,2, 0},
|
||||
{3,3,3,3, 0},
|
||||
{5,5,5,5, 0},
|
||||
{8,1,9,3, 3},
|
||||
{8,0,9,6, 5},
|
||||
{7,7,7,7, 0},
|
||||
{9,9,9,9, 4},
|
||||
{7,7,5,6, 1},
|
||||
{6,8,5,5, 3},
|
||||
{9,8,8,1, 5},
|
||||
{5,5,3,1, 0}
|
||||
};
|
||||
|
||||
for(int i = 0; i < problem1.GetLength(0); i++) {
|
||||
solver.Add( (from j in Enumerable.Range(0, 4)
|
||||
select all[problem1[i,j]]
|
||||
).ToArray().Sum() == problem1[i,4] );
|
||||
}
|
||||
|
||||
solver.Add(all[2]+all[5]+all[8]+all[1] == x);
|
||||
|
||||
} else if (p == 3) {
|
||||
|
||||
// Problem 2
|
||||
solver.Add(x8+x8+x0+x9 == 6);
|
||||
solver.Add(x7+x6+x6+x2 == 2);
|
||||
solver.Add(x9+x3+x1+x2 == 1);
|
||||
solver.Add(x8+x1+x9+x3 == 3);
|
||||
solver.Add(x8+x0+x9+x6 == 5);
|
||||
solver.Add(x7+x7+x5+x6 == 1);
|
||||
solver.Add(x6+x8+x5+x5 == 3);
|
||||
solver.Add(x9+x8+x8+x1 == 5);
|
||||
|
||||
// The unknown
|
||||
solver.Add(x2+x5+x8+x1 == x);
|
||||
|
||||
} else {
|
||||
|
||||
// Another representation of Problem 2
|
||||
int[,] problem2 = {
|
||||
{8,8,0,9, 6},
|
||||
{7,6,6,2, 2},
|
||||
{9,3,1,2, 1},
|
||||
{8,1,9,3, 3},
|
||||
{8,0,9,6, 5},
|
||||
{7,7,5,6, 1},
|
||||
{6,8,5,5, 3},
|
||||
{9,8,8,1, 5}
|
||||
};
|
||||
|
||||
for(int i = 0; i < problem2.GetLength(0); i++) {
|
||||
solver.Add( (from j in Enumerable.Range(0, 4)
|
||||
select all[problem2[i,j]]
|
||||
).ToArray().Sum() == problem2[i,4] );
|
||||
}
|
||||
|
||||
|
||||
solver.Add(all[2]+all[5]+all[8]+all[1] == x);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Search
|
||||
//
|
||||
DecisionBuilder db = solver.MakePhase(all,
|
||||
Solver.INT_VAR_DEFAULT,
|
||||
Solver.INT_VALUE_DEFAULT);
|
||||
|
||||
|
||||
solver.NewSearch(db);
|
||||
int c = 0;
|
||||
while (solver.NextSolution()) {
|
||||
Console.Write("x: {0} x0..x9: ", x.Value());
|
||||
for(int i = 0; i < n; i++) {
|
||||
Console.Write(all[i].Value() + " ");
|
||||
}
|
||||
Console.WriteLine();
|
||||
}
|
||||
|
||||
Console.WriteLine("\nSolutions: {0}", solver.Solutions());
|
||||
Console.WriteLine("WallTime: {0}ms", solver.WallTime());
|
||||
Console.WriteLine("Failures: {0}", solver.Failures());
|
||||
Console.WriteLine("Branches: {0} ", solver.Branches());
|
||||
|
||||
solver.EndSearch();
|
||||
|
||||
}
|
||||
|
||||
public static void Main(String[] args)
|
||||
{
|
||||
for(int p = 1; p <= 4; p++) {
|
||||
Solve(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
examples/dotnet/csintegerprogramming.csproj
Normal file
20
examples/dotnet/csintegerprogramming.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="csintegerprogramming.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/csjobshop.csproj
Normal file
20
examples/dotnet/csjobshop.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="csjobshop.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/csknapsack.csproj
Normal file
20
examples/dotnet/csknapsack.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="csknapsack.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/cslinearprogramming.csproj
Normal file
20
examples/dotnet/cslinearprogramming.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="cslinearprogramming.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/csls_api.csproj
Normal file
20
examples/dotnet/csls_api.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="csls_api.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/csrabbitspheasants.csproj
Normal file
20
examples/dotnet/csrabbitspheasants.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="csrabbitspheasants.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/cstsp.csproj
Normal file
20
examples/dotnet/cstsp.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="cstsp.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/curious_set_of_integers.csproj
Normal file
20
examples/dotnet/curious_set_of_integers.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="curious_set_of_integers.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/debruijn.csproj
Normal file
20
examples/dotnet/debruijn.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="debruijn.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/diet.csproj
Normal file
20
examples/dotnet/diet.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="diet.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/discrete_tomography.csproj
Normal file
20
examples/dotnet/discrete_tomography.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="discrete_tomography.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/divisible_by_9_through_1.csproj
Normal file
20
examples/dotnet/divisible_by_9_through_1.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="divisible_by_9_through_1.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/dudeney.csproj
Normal file
20
examples/dotnet/dudeney.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="dudeney.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/einav_puzzle2.csproj
Normal file
20
examples/dotnet/einav_puzzle2.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="einav_puzzle2.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/eq10.csproj
Normal file
20
examples/dotnet/eq10.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="eq10.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/eq20.csproj
Normal file
20
examples/dotnet/eq20.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="eq20.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/fill_a_pix.csproj
Normal file
20
examples/dotnet/fill_a_pix.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="fill_a_pix.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,19 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.fs" />
|
||||
<Reference Include="Google.OrTools">
|
||||
<HintPath>..\..\..\bin\Google.OrTools.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Google.OrTools.FSharp">
|
||||
<HintPath>..\..\..\bin\Google.OrTools.FSharp.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
20
examples/dotnet/furniture_moving.csproj
Normal file
20
examples/dotnet/furniture_moving.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="furniture_moving.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/furniture_moving_intervals.csproj
Normal file
20
examples/dotnet/furniture_moving_intervals.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="furniture_moving_intervals.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/futoshiki.csproj
Normal file
20
examples/dotnet/futoshiki.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="futoshiki.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
20
examples/dotnet/gate_scheduling_sat.csproj
Normal file
20
examples/dotnet/gate_scheduling_sat.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<LangVersion>7.2</LangVersion>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<GenerateTailCalls>true</GenerateTailCalls>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="gate_scheduling_sat.cs" />
|
||||
<PackageReference Include="Google.OrTools" Version="6.8.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user