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

Polygon - Defining nonlinear constraints

Description
Maximize the area of polygon of N vertices and diameter of 1. This example demonstrates how to build nonlinear formulae from strings and token sequences.

Difficulty rating: 3 (intermediate)

polygonobjects_dnet.zip[download all files]

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





PolygonObjects.csproj

<?xml version="1.0" encoding="UTF-8" standalone="no"?><Project Sdk="Microsoft.NET.Sdk">

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

    <IsPackable>false</IsPackable>
    <XpressExampleFiles Condition="'$(XpressExampleFiles)'==''">../../../data</XpressExampleFiles>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="FICO.Xpress.XPRSdn" Version="47.1.1"/> <!-- Version 47.01.01 or later -->
  </ItemGroup>

</Project>
Back to examples browserPrevious exampleNext example