You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Oscar Bastidas <ob...@umn.edu.INVALID> on 2020/07/11 01:53:28 UTC
[math] Optimization API Question
Would someone please tell me if the Optimization APIs in Apache Commons
Math can be used to solve a multi-variate equation (multiple xs, just one
y) for a specific value as Microsoft Excel's Solver can and if so, how that
would be implemented? In short, I don't want to solve my multi-variate
system for zero, but set it equal to any number of my choosing and have the
program return the values of the coefficients (Y=Ax1+Bx2+Cx3+...nxi) that
satisfy the equation. Thanks.
Oscar B.
Re: [math] Optimization API Question
Posted by Oscar Bastidas <ob...@umn.edu.INVALID>.
Hello Gilles,
That is a good question. I don't know. I read through the webpage Apache
Commons Math has for the optimization APIs and everything there appeared to
be an optimization (minimization or maximization) not for solving to hit a
custom target "y" value. I will look at the specific documentation for the
specific class you mention and see if there is some way to do what I am
looking for. Thanks.
Oscar
On Sat, Jul 11, 2020, 2:00 PM Gilles Sadowski <gi...@gmail.com> wrote:
> Hi.
>
> Le sam. 11 juil. 2020 à 03:54, Oscar Bastidas
> <ob...@umn.edu.invalid> a écrit :
> >
> > Would someone please tell me if the Optimization APIs in Apache Commons
> > Math can be used to solve a multi-variate equation (multiple xs, just one
> > y) for a specific value as Microsoft Excel's Solver can and if so, how
> that
> > would be implemented? In short, I don't want to solve my multi-variate
> > system for zero, but set it equal to any number of my choosing and have
> the
> > program return the values of the coefficients (Y=Ax1+Bx2+Cx3+...nxi) that
> > satisfy the equation. Thanks.
>
> Isn't the functionality implemented in the
> org.apache.commons.math4.optim.linear
> package[1] what you are looking for?
>
> Regards,
> Gilles
>
> [1]
> http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math4/optim/linear/package-frame.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
Re: [math] Optimization API Question
Posted by Gilles Sadowski <gi...@gmail.com>.
Hi.
Le sam. 11 juil. 2020 à 03:54, Oscar Bastidas
<ob...@umn.edu.invalid> a écrit :
>
> Would someone please tell me if the Optimization APIs in Apache Commons
> Math can be used to solve a multi-variate equation (multiple xs, just one
> y) for a specific value as Microsoft Excel's Solver can and if so, how that
> would be implemented? In short, I don't want to solve my multi-variate
> system for zero, but set it equal to any number of my choosing and have the
> program return the values of the coefficients (Y=Ax1+Bx2+Cx3+...nxi) that
> satisfy the equation. Thanks.
Isn't the functionality implemented in the
org.apache.commons.math4.optim.linear
package[1] what you are looking for?
Regards,
Gilles
[1] http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math4/optim/linear/package-frame.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org