Preview edition binaries for the OptalCP constraint programming solver.
This package is public, but GitHub Packages requires authentication even for
public NuGet packages. Go to github.com/settings/tokens
and create a classic token (not fine-grained) with the read:packages scope.
Copy the token value.
See GitHub's NuGet registry documentation for details.
dotnet nuget add source "https://nuget.pkg.github.com/ScheduleOpt/index.json" \
--name ScheduleOpt \
--username YOUR_GITHUB_USERNAME \
--password YOUR_GITHUB_TOKEN \
--store-password-in-clear-textReplace YOUR_GITHUB_USERNAME with your GitHub username and YOUR_GITHUB_TOKEN
with the token from step 1.
Note:
--store-password-in-clear-textis required on Linux and macOS where the .NET credential encryption is not available. The token is stored in~/.nuget/NuGet/NuGet.Config.
dotnet add package OptalCP.Bin.PreviewThis will automatically install the OptalCP API package as a dependency.
The Preview edition of OptalCP is a limited version that:
- Solves problems normally
- Reports only objective values (no solution details)
- Is useful for evaluation and testing
For full functionality, install OptalCP.Bin (full edition) or OptalCP.Bin.Academic (academic edition).
Contact ScheduleOpt for licensing options (academic licenses are free).
Once installed, the OptalCP package will automatically find and use this binary:
using OptalCP;
var model = new Model();
// ... build your model ...
var result = model.Solve();
Console.WriteLine($"Objective: {result.Objective}");To upgrade to the full edition, replace the package reference:
dotnet remove package OptalCP.Bin.Preview
dotnet add package OptalCP.BinThe full edition will automatically take priority over the preview edition.
- Linux (x86_64)
- macOS (ARM64)
- Windows (x64)
See LICENSE.md file in the package for license terms.