环境:VS2017+MATLAB R2017a
①打开上次我们生成的BPClass.cs文件(目录:~//bin/BP/for_testing),得在C#程序中引用生成的dll文件(目录:~//bin/BP/for_redistribution_files_only)
②Methods里面写了调用方法,并给出了详尽的注释(这里的numArgsOut是输出参数的数量,可以看注释)
/// <summary>
/// Provides the standard 7-input MWArray interface to the BP MATLAB function.
/// </summary>
/// <remarks>
/// M-Documentation:
/// 以下六行是BP网络最核心的程序
/// 他们是权值(阈值)依据能量函数负梯度下降原理所作的每一步动态调整量
/// </remarks>
/// <param name="numArgsOut">The number of output arguments to return.</param>
/// <param name="gdp">Input argument #1</param>
/// <param name="steelProduction">Input argument #2