C# Microsoft.Solver.Foundation 計算精度の変更

Copper Contributor

NuGetのMicrosoft.Solver.Foundationを使用し、

InteriorPointSolverで最適化をしています。

 

そこで、計算精度の指定をしたいです。

次のようなProgramの場合、計算精度の指定はSolveTolerance で合っていますか?

合っている場合、その他設定しなければならない条件やプロパティ等はありますか?

 

よろしくお願いします。

 

using Microsoft.SolverFoundation.Solvers;

namespace TestSolver
{
class Program
{
static void Main(string[] args)
{
var ips = new InteriorPointSolver();
var ipsp = new InteriorPointSolverParams();
ipsp.SolveTolerance = 0.001d;
ips.Solve(ipsp);
}
}
}

0 Replies