ApCoCoA:Latte.Maximize

From CoCoAWiki
Jump to: navigation, search

<command> <title>Latte.Maximize</title> <short_description>Maximizes the objective function over a polyhedral P given by a number of linear constraints.</short_description> <syntax> Latte.Maximize(Equations: LIST, LesserEq: LIST, GreaterEq: LIST, ObjectiveF: POLY):LIST </syntax>

<description> Please note: The function(s) explained on this page is/are using the ApCoCoAServer. You will have to start the ApCoCoAServer in order to use it/them.

<itemize> <item>@param Equations: A list of linear polynomials, which are equivalent to the equality-part of the polyhedral constraints</item> <item>@param LesserEq: A list of linear polynomials, which are equivalent to the lower or equal-part of the polyhedral constraints</item> <item>@param GreaterEq: A list of linear polynomials, which are equivalent to the greater or equal-part of the polyhedral constraints</item> <item>@param ObjectiveF: A linear polynomial</item> <item>@return A list [[Optimal coordinates], Optimal solution, [Coeffs of objective function]]</item> </itemize>

<example> Use S ::= QQ[x,y]; Equations := []; LesserEq := [x-1, x+y-1]; GreaterEq := [x,y]; ObjectiveF := x + y; Latte.Maximize(Equations, LesserEq, GreaterEq, ObjectiveF);

[[1, 0], 1, [1, 1]]


</example>

</description> <types>

 <type>apcocoaserver</type>

</types> <see>GLPK.LPSolve</see>

<key>Latte</key> <key>Maximize</key> <key>Latte.Maximize</key> <wiki-category>Package_latte</wiki-category> </command>