Basic embedding tasks
Description
- ugcomptmp.cs: Compiling a model into a BIM file saved in Mosel's temporary directory (requires burglar2.mos, burglar.dat)
- ugrun.cs: Compiling a model into a BIM file, then load and run it (requires burglar2.bim, burglar.dat)
- ugdefstream.cs: Redirecting the model output (requires burglar2.mos, burglar.dat)
- ugarray.cs: Accessing modeling objects: sparse arrays (requires transport.mos, transprt.dat)
- ugcb.cs: Retrieve model output via a callback into a custom TextWriter (requires burglar2.mos, burglar.dat)
- ugcb2.cs: Retrieve model output via a callback into a string (requires burglar2.mos, burglar.dat)
- ugparam.cs: Passing parameters to a Mosel model (requires prime.mos)
- ugsol.java: Accessing modeling objects and solution information (requires burglar3.mos, burglar.dat)
Source Files
By clicking on a file name, a preview is opened at the bottom of this page. Data Files
ugparam.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<Content Include="../prime.mos" CopyToOutputDirectory="Always" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FICO.Xpress.XPRMdn" Version="5.6.1" />
</ItemGroup>
</Project>
|