简体   繁体   English

excel使用VBA解决200多个数据

[英]excel solver more than 200 data using VBA

I am new using this Solver function. 我是新使用此求解器功能的人。 Is there is way to use Solver for more than 200 sets of data. 有没有办法使用Solver处理200多个数据集。 Maybe using VBA? 也许使用VBA? Really hope someone could help me 真的希望有人可以帮助我

No, you need to buy their commercial product (from Frontline Systems) or build one yourself. 不,您需要购买他们的商业产品(从Frontline Systems购买)或自己建造。 For Linear/Non-linear optimization there are a lot of open source libraries available in C++ so you may compile a DLL and invoke it from a VBA wrapper. 对于线性/非线性优化,C ++中提供了许多开放源代码库,因此您可以编译DLL并从VBA包装器中调用它。

Also, it's not difficult to implement it completely in VBA. 同样,在VBA中完全实现它也不难。 The original guys who developed the solver have given a very very detailed explanation of its workings here. 开发求解器的原始人在这里对它的工作原理进行了非常详细的解释。 These are the guys who actually made it so you can easily replicate it - especially for the linear case. 这些是实际制作出来的人,因此您可以轻松地复制它-特别是对于线性情况。

A bit dated, but will give you an idea on how to proceed. 有点过时了,但是会让您对如何进行了解。

https://www.utexas.edu/courses/lasdon/design.htm https://www.utexas.edu/courses/lasdon/design.htm

Especially useful are the sections where they describe how they build the Jacobian matrix numerically (for Generalized Gradient Descent in NLopt) and how they use a small perturbation to determine the linear coefficients for the Simplex Method. 特别有用的部分是描述如何数字构造雅可比矩阵的方法(对于NLopt中的广义梯度下降)以及如何使用小的扰动来确定Simplex方法的线性系数。 Thus for a linear problem, the only trick is to generate the Coefficient Matrix and then the solver can proceed completely in-memory and generate 因此,对于线性问题,唯一的技巧是生成系数矩阵,然后求解器可以完全在内存中进行并生成

  1. the optimal solution 最佳解决方案
  2. Shadow prices, reduced costs, etc. 影子价格,降低的成本等

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM