FICO
FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browserPrevious exampleNext example

Purchase - Definition of SOS-2

Description
A model for optimal purchasing with price-breaks featuring a complex MIP model, data input from file and using SOS-2.

Further explanation of this example: Quick reference guide 'MIP formulations and linearizations', Section 3.3 Price breaks


Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
xbpurch.cs[download]
xbpurch.csproj[download]

Data Files





xbpurch.csproj

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net5.0</TargetFramework>

    <IsPackable>false</IsPackable>
  </PropertyGroup>

  <ItemGroup>
    <Content Include="../../../Data/purchase/*">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
      <LinkBase>Data/purchase</LinkBase>
    </Content>
  </ItemGroup>
  
  <ItemGroup>
    <PackageReference Include="FICO.Xpress.XPRBdn" Version="4.14.0" /> <!-- Version 4.14.0 or later -->
  </ItemGroup>
  

</Project>
Back to examples browserPrevious exampleNext example