SolverContext context = SolverContext.GetContext(); Model model = context.CreateModel(); Decision X = new Decision(Domain.Real, "X"); Decision Y = new Decision(Domain.Real, "Y"); model.AddDecision(X); model.AddDecision(Y); model.AddConstraint("eq0", "(X-3)^2+(Y-4)^2 == 2^2"); model.AddConstraint("eq1", "(X-6)^2+(Y-4)^2 == 2^2"); Solution solution = context.Solve(new Directive() { TimeLimit = 20000 }); var a = X.GetDouble(); var b = Y.GetDouble(); solution.GetNext(); a = X.GetDouble(); b = Y.GetDouble();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)