Thanks a million!

SimplexSolver solves my problem ;-)

Cheers,
Piotr

On Fri, Apr 15, 2011 at 4:32 PM, Luc Maisonobe <[email protected]> wrote:
> Le 15/04/2011 11:12, Piotr Kolanowski a écrit :
>> Hi all,
>>
>> I'm looking for examples for MultivariateRealOptimizer. I've been
>> reading the available
>> documentation but unfortunately I still have no clue how to use it.
>>
>> I would like to maximize following example objective function:
>>
>> 5x1 + 13x2 + 11x3
>>
>> constrained by:
>>
>> x1 + 3x2 + x3  <= 22,
>> x1 + x2 + 3x3 <= 50,
>>
>> where all x >= 0
>>
>> Could anyone point me to examples, documentation on how to use commons math 
>> to
>> solve linear programming problems?
>
> You should use the SimplexSolver class in the optimization.linear
> package. It seems we forgot to put this in the user guide :-(.
> You can find example code in the unit tests in the source distribution.
> see for example
> <http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/linear/SimplexSolverTest.java?view=markup>.
>
> Luc
>
>>
>> Thanks for any help,
>>
>> Piotr
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to