Previous Page Next Page Contents

linopt::Transparent::result -- get the basic feasible solution belonging to the given simplex tableau

Introduction

linopt::Transparent::result(tableau) returns the basic feasible solution belonging to the given simplex tableau tableau.

Call(s)

linopt::Transparent::result(tableau)

Parameters

tableau - a simplex tableau of domain type linopt::Transparent

Returns

a set containing the values of the user defined variables for the feasible solution.

Related Functions

linopt::Transparent, linopt::Transparent::dual_prices

Details

Example 1

We first compute an edge for an initial simplex tableau:

>> k := [[x <= 1, y <= 1, x + y >= 2], 0, NonNegative]:
   t := linopt::Transparent(k):
   linopt::Transparent::result(t)
                              {x = 0, y = 0}

Now we compute the edge for the final tableau, which is identical to the optimal solution of the linear program given by k. We get the final simplex tableau by using linopt::Transparent::simplex:

>> t := linopt::Transparent(k):
   t := linopt::Transparent::simplex(t):
   linopt::Transparent::result(t)
                              {x = 1, y = 1}
>> linopt::minimize(k)
                       [OPTIMAL, {x = 1, y = 1}, 0]
>> delete k, t:
     

Background

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000