問題タブ [differential-evolution]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - SciPy の差分進化
differential_evolution
SciPyから使用しようとしています。x、y、P の 3 つの行列があります - すべてサイズ (14,6) です。次の式を使用する必要があります。
最小化する c (0 から 2 までの実数) の値を見つけるには:
この表現。私が試しているのはこれです(便宜上データを提供します):
次のエラーが表示されます: TypeError: func() takes exactly 2 arguments (3 given)
。これを修正する方法はありますか?