
Re: Optimization Calculations in PI/AF
bshang May 26, 2015 5:11 PM (in response to vwitzel)Hi Vincent,
We do not have many statistical optimization (gradient descent, rootfinding, etc.) functions within PI libraries, mainly because our data access products are aimed at providing methods to get data out of (and into) the PI System, and we like customer's to use thirdparty tools for statistical/mathematical calculations, since other data sources/platforms may be involved and those libraries would be more mature and optimized. We have a White Paper below on how to get PI data into MATLAB which may be of interest.
White Paper  Using PI Data with MATLAB
Other tools like R and Python have also been used by customers to do these sorts of analyses. Let us know if you have additional questions.

Re: Optimization Calculations in PI/AF
vwitzel Jun 1, 2015 1:58 PM (in response to bshang)Hi Barry,
Thanks for your input. What about using the Microsoft Solver Foundation in conjunction with ACE  is this supported?
Vincent

Re: Optimization Calculations in PI/AF
bshang Jun 1, 2015 3:39 PM (in response to vwitzel)Hi Vincent, Solver Foundation should be compatible with ACE. ACE runs on the .NET 2.0 runtime, so that will be something to check if Solver Foundation supports.

Re: Optimization Calculations in PI/AF
ee.ashley Jun 1, 2015 5:45 PM (in response to bshang)I've used the Solver Foundation successfully with ACE before, using the simplex solver for an LP problem (though more as an experiment, not for a production application).
I can't remember what version of the .NET framework the solver foundation requires, but my old Solver Foundation ACE project was targeting .NET 4.0.
You can run .NET 4.0 code with ACE, just follow this KB article: KB00645  Specifying the version of .NET framework for PI ACE calculations
We are running a number of ACE calculations with .NET 4.0 and now .NET 4.5 code using this method (to use the AF SDK, for example).

Re: Optimization Calculations in PI/AF
vwitzel Jun 1, 2015 6:45 PM (in response to ee.ashley)Thanks for sharing, Ashley, I appreciate it. Did you perhaps also try solving any nonlinear problems using the Solver Foundation?

Re: Optimization Calculations in PI/AF
ee.ashley Jun 1, 2015 8:33 PM (in response to vwitzel)Hi Vincent, unfortunately I did not try any of the nonlinear solvers. But I would imagine they should work within ACE too since I could use one of the linear solvers without any issues.




