Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self init solverData if not available #1637

Closed
dehann opened this issue Nov 16, 2022 · 0 comments · Fixed by #1641 or #1642
Closed

self init solverData if not available #1637

dehann opened this issue Nov 16, 2022 · 0 comments · Fixed by #1641 or #1642

Comments

@dehann
Copy link
Member

dehann commented Nov 16, 2022

We should not need to do this everywhere, and should just be internal automation in IIF. When launching a solve and solverData is not available -- we have been using this as workaround everywhere.

for vl in ls(fg)
  v = getVariable(fg,vl)
  varType = getVariableType(v) |> IIF._variableType
  vsolveKeys = listSolveKeys(fg,vl)
  if !(:default in vsolveKeys)
      IIF.setDefaultNodeData!(v, 0, getSolverParams(fg).N, getDimension(varType); initialized=false, varType) # dodims
  end
  if !(:parametric in vsolveKeys)
      IIF.setDefaultNodeDataParametric!(v, varType, initialized=false)
  end
end
@dehann dehann added this to the v0.0.x milestone Nov 16, 2022
dehann added a commit that referenced this issue Dec 7, 2022
@dehann dehann mentioned this issue Dec 7, 2022
@dehann dehann closed this as completed Dec 7, 2022
@dehann dehann linked a pull request Dec 7, 2022 that will close this issue
@dehann dehann modified the milestones: v0.0.x, v0.31.1 Dec 7, 2022
@dehann dehann linked a pull request Dec 7, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant