C# ILNumerics不包含优化?

C# ILNumerics不包含优化?,c#,ilnumerics,C#,Ilnumerics,我有错误错误“当前上下文中不存在名称“优化”。但我从NuGet安装了ILNumerics,它不包含优化。为什么?** using ILNumerics; using Microsoft.SolverFoundation.Services; using Microsoft.SolverFoundation.Solvers; using System; using System.Collections.Generic; using System.Linq; using System.Text; us

我有错误
错误“当前上下文中不存在名称“优化”
。但我从NuGet安装了ILNumerics,它不包含优化。为什么?**

using ILNumerics;
using Microsoft.SolverFoundation.Services;
using Microsoft.SolverFoundation.Solvers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication5
{
class Program
{
    static void Main(string[] args)
    {

        // define the bounds and start 
        ILArray<double> bounds = new double[] { 2, 3 };
        ILArray<double> start = new double[] { 1 };
        // find minimum inside bounds, start at 0
        ILArray<double> m = Optimization.fmin(myFunc, start,lowerBound: bounds[0], upperBound: bounds[1]);
    }
    ILRetArray<double> myFunc(ILInArray<double> x)
    {
        using (ILScope.Enter(x))
        {
            return (x - 1) * (x - 1);
        }
    }
}
}
使用ILNumerics;
使用Microsoft.SolverFoundation.Services;
使用Microsoft.SolverFoundation.Solvers;
使用制度;
使用System.Collections.Generic;
使用System.Linq;
使用系统文本;
使用System.Threading.Tasks;
命名空间控制台应用程序5
{
班级计划
{
静态void Main(字符串[]参数)
{
//定义边界并开始
ILArray界限=新的双[]{2,3};
ILArray start=新的双精度[]{1};
//查找最小内边界,从0开始
ILArray m=Optimization.fmin(myFunc,start,lowerBound:bounds[0],upperBound:bounds[1]);
}
ILRetArray myFunc(iLinex阵列)
{
使用(ILScope.Enter(x))
{
报税表(x-1)*(x-1);
}
}
}
}

根据,
Optimization.fmin
位于
ILNumerics.toolbox
,而不是直接位于
ILNumerics
中。您必须从这里安装最新的官方版本:很遗憾。那个图书馆不是免费的。我用Accord.net库解决了约束非线性优化问题。哈莫·库奇巴赫。写下答案,我会接受。根据,
优化。fmin
驻留在
ILNumerics.toolboxs
,而不是直接在
ILNumerics
中。您必须从这里安装最新的官方版本:很遗憾。那个图书馆不是免费的。我用Accord.net库解决了约束非线性优化问题。哈莫·库奇巴赫。写下答案,我会接受的。