Machine learning, computer vision, statistics and general scientific computing for .NET
GNU Lesser General Public License v2.1
4.48k
stars
1.99k
forks
source link
Add an Example for NonlinearConstraint Constructor (IObjectiveFunction, Expression(Func(Double[], Boolean)), Func(Double[], Double[])) #2222
Open
mahui-cn opened 3 years ago
hi,
When I call new NonlinearConstraint like below:
Complier throw an error like: System.NullReferenceException
I check the source code of constructor of NonlinearConstraint class:
the constraint which I put in should return a result of boolean, but why the constructor call parse to get value of double type?
Please add an example for NonlinearConstraint Constructor (IObjectiveFunction, Expression(Func(Double[], Boolean)), Func(Double[], Double[])).
TODO (optional): Describe a specific scenario you would like to see addressed.
Help Topic: http://accord-framework.net/docs/html/M_Accord_Math_Optimization_NonlinearConstraint__ctor_3.htm