Using the Wrapper in Projects
XPRS
and XPRSprob
classes, which reside in the Optimizer namespace, which resides in the xprsdn.dll assembly.
The Optimizer functionality is exposed through the XPRS
and XPRSprob
classes, which reside in the Optimizer namespace, which resides in the xprsdn
package. Each source file that uses the Optimizer should import the Optimizer namespace and should be compiled with a reference to xprsdn
.
xpressmp/lib/nuget
folder. If using Visual Studio, you can add this folder as a
NuGet package source by performing the following steps:
- Click on Tools menu. in the
- Select Package Sources.
- Click the + icon to add a new source, then name it Xpress local packages.
- Select the folder C:\xpressmp\lib\nuget.
- Click Update then OK to save the changes.
- Select Manage NuGet Packages from the Project menu.
- Select Xpress local packages from the Package source drop-down in the upper right, then select FICO.Xpress.XPRSdn from the Browse tab, and click Install to add it to the project..
.NET CLI
, use the following command to add
xprsdn
to your project:
dotnet add package -s C:\xpressmp\lib\nuget FICO.Xpress.XPRSdn
In all cases, the wrapper does not include the Xpress Solver and a local installation of Xpress will be required to use the wrapper library.
The Xpress installations for Windows include a .NET Framework 3.5-targeted assembly xpressmp/bin/xprsdn.dll
for legacy reasons; new applications should not reference this file and existing projects should migrate to referencing the NuGet
package instead.
© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.