| |||||||||||||
Load an LP and modify it by adding an extra constraint Description The problem
Maximize 2x + y subject to c1: x + 4y <= 24 c2: y <= 5 c3: 3x + y <= 20 c4: x + y <= 9 and 0 <= x,y <= +infinityand the extra constraint c5: 6x + y <= 20are first stored in the user's data structures. The LP is then loaded into Optimizer, using loadprob, and solved using the primal simplex algorithm. Next, the extra constraint is added to the problem matrix, using addrows, and the revised problem solved using the dual algorithm. In each case, the problem matrix is output to a file, the objective function value displayed on screen, and the problem statistics are are stored in a log file.
Source Files By clicking on a file name, a preview is opened at the bottom of this page.
LoadLP.csproj <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net5.0</TargetFramework> <IsPackable>false</IsPackable> </PropertyGroup> <ItemGroup> <PackageReference Include="FICO.Xpress.XPRSdn" Version="38.1.2" /> <!-- Version 38.01.02 or later --> </ItemGroup> </Project> | |||||||||||||
© Copyright 2023 Fair Isaac Corporation. |