There is a newer version of this package available.
See the version list below for details.
Install-Package OPTANO.Modeling -Version
dotnet add package OPTANO.Modeling --version
<PackageReference Include="OPTANO.Modeling" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OPTANO.Modeling --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OPTANO.Modeling,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install OPTANO.Modeling as a Cake Addin
#addin nuget:?package=OPTANO.Modeling&version=

// Install OPTANO.Modeling as a Cake Tool
#tool nuget:?package=OPTANO.Modeling&version=
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Version 3.0.0 (2019-04-29)

  • TargetFramework is increased to .net 4.6.1 in order to provide full compatibility for .netstandard20.
    • This means that you need to update your application to .net 4.6.1 (or later), if you wish to continue using OPTANO.Modeling in version 3.0 (or later).
  • Feature: Updated Z3 Solver to version 4.8.4.
  • Feature: Methods for adding variables and constraints to the Model are now
    1. Thread Safe
    2. Executed as (parallelized) batch queries.
  • Feature: Added parameter for specifying library paths that contain the required libraries/DLLs for your solver.
    • The LibraryPaths will be appended to the PATH environment variable, so that you do not need to copy the DLLs into your bin/Debug (or /Release) folders.
  • Feature: Truncating length of DebugNames to a total number of characters (this includes the appended base64-suffixes), since some solvers can only handle variable/constraint names up to that size.
    • The truncating can be activated with the Configuration.MaximumNameLength parameter.
    • This is relevant for the GurobiSolver, since it can only handle names with a total length of up to 255 characters.
      • I.e. if you encounter issues with the length of your debug-names, set the above-mentioned parameter to 255 (instead of its default value 'null').
  • Feature: Added MaximumNameLength parameter to the ModelScope for limiting the maximum (debug-) name length of Variables, Constraints and Objectives.
    • Some solvers (e.g. Gurobi) only allow variable names with a length of up to 255 characters. If a variable with a longer name is added, an Exception is thrown.
    • The MaximumNameLength limits the length of the generated UniqueLongNames by truncating the debug names (from your specified name generator), before appending the suffix, so that the total length of the name will not exceed the MaximumNameLength.
  • Improvement: Added possibility for generating a mapping of Variable ShortNames to DebugNames in the ConflictingSet. See ConflictingSet Documentation for further information.
  • Improvement: Added a method for checking if a given variable index is used within a VariableCollection: IVariableCollection.IsVariableForIndexInstanciated
    • GenericVariableCollection provides explicitly typed methods for querying with the generic "T" parameters.
  • Improvement: Added method that returns all used variable indices within a GenericVariableCollection: GenericVariableCollection.ExistingIndicesGeneric
  • Fix: Fixed an issue in MIPCL, where constraints without variables, such as "1 ⇐ 0" were ignored by the solver.
    • Models that contain such constraints will now be declared infeasible.
  • Breaking Change: Removed support for older MIPCL versions, since only the most recent version of MIPCL can be obtained from MIPCL Download.
  • Breaking Change: Removed static ModelScope Configuration.Instance.
    • There is no technical necessity for maintaining a singleton instance of the model scope configuration.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on OPTANO.Modeling:

Package Downloads

The Optimization.Framework allows you to use C# as a modelling language for mathematical optimization. It furthermore allows you to use solvers as services.


State of the Art Mathematical Programming Solver This package ships all files to run Gurobi with OPTANO Modeling on win64 and linux64. No additional installation required. When running on linux, please also install gurobi as usual. OPTANO.Modeling.Gurobi comes with a size-limited Gurobi license (Package OPTANO Modeling required). Please visit https://www.gurobi.com/partners/optano to obtain an unlimited license.


A F# library for creating and solving Linear Programming and Mixed Integer Programming Models


OPTANO.Modeling.GLPK provides a solver adapter that connects the GLPK ( https://www.gnu.org/software/glpk/ ) to OPTANO.Modeling ( https://www.nuget.org/packages/optano.modeling ). Copyright (C) 2020 OPTANO GmbH This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 124 10/15/2021 163 8/27/2021 2,156 4/26/2021 407 12/10/2020 575 11/23/2020 428 11/17/2020 193 8/20/2020 949 7/16/2020 1,771 2/21/2020 315 1/16/2020 287 1/9/2020 327 1/8/2020 386 12/10/2019 4,934 5/6/2019 323 4/29/2019 147 1/13/2021 257 11/25/2020 1,219 5/6/2019 344 4/25/2019 361 4/4/2019 428 2/14/2019 382 1/31/2019 572 1/14/2019 568 1/14/2019 601 12/19/2018 406 12/15/2018 414 12/4/2018 501 12/3/2018 408 12/2/2018 463 11/29/2018 2,138 9/5/2018 694 5/25/2018 522 5/16/2018 674 5/2/2018 608 3/14/2018 752 1/24/2018 709 1/24/2018 1,159 11/15/2017 822 10/18/2017 754 9/28/2017 901 9/5/2017 963 9/3/2017 771 8/26/2017 732 8/20/2017 838 8/10/2017 768 8/4/2017 802 7/13/2017 834 5/8/2017 804 4/20/2017 942 3/6/2017 849 3/4/2017 894 3/3/2017 835 2/23/2017 882 1/3/2017 869 12/23/2016 843 11/23/2016 4,720 11/1/2016