I have error Error "The name 'Optimization' does not exist in the current context"
. But i installed ILNumerics from NuGet and it does not contains Optimization. Why?* *
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);
}
}
}
}