-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi, i try to. run the dcpowergrid case, and i modified partition_and_solve.jl to the following due to some changes in kahypar.jl and schawarzopt.jl. However, when i included the dual and primal links in optimizer, #it shows error:
Optimizing with user provided overlap
Initializing SchwarzOpt...
ERROR: AssertionError: !(incident_node in all_nodes(subproblem_graph))
Stacktrace:
[1] macro expansion at /Users/822qiuqiu/.julia/packages/SchwarzOpt/rfQsH/src/optimizer.jl:216 [inlined]
[2] macro expansion at ./timing.jl:233 [inlined]
[3] _initialize_optimizer!(::SchwarzOpt.Optimizer) at /Users/822qiuqiu/.julia/packages/SchwarzOpt/rfQsH/src/optimizer.jl:136
[4] optimize!(::SchwarzOpt.Optimizer) at /Users/822qiuqiu/.julia/packages/SchwarzOpt/rfQsH/src/optimizer.jl:390
[5] optimize!(::OptiGraph; subgraphs::Array{OptiGraph,1}, sub_optimizer::MathOptInterface.OptimizerWithAttributes, overlap::Int64, max_iterations::Int64, primal_links::Array{LinkConstraintRef,1}, dual_links::Array{LinkConstraintRef,1}) at /Users/822qiuqiu/.julia/packages/SchwarzOpt/rfQsH/src/optimizer.jl:526
[6] top-level scope at /Users/822qiuqiu/Desktop/PlasmoExamples/case_studies/dcpowergrid/partition_and_solve.jl:63
Then i drop the primal and dual links in optimizer, it shows below, and it seemed that the objective function has some problem.
Number of variables: 100203
Number of constraints: 94483
Number of subproblems: 4
Overlap:
Subproblem variables: [27865, 29044, 32810, 34732]
Subproblem constraints: [10493, 10653, 12407, 13112]
┌ Warning: Suboptimal solution detected for subproblem with status INVALID_OPTION
└ @ SchwarzOpt ~/.julia/packages/SchwarzOpt/rfQsH/src/optimizer.jl:309
┌ Warning: Suboptimal solution detected for subproblem with status INVALID_OPTION
└ @ SchwarzOpt ~/.julia/packages/SchwarzOpt/rfQsH/src/optimizer.jl:309
┌ Warning: Suboptimal solution detected for subproblem with status INVALID_OPTION
└ @ SchwarzOpt ~/.julia/packages/SchwarzOpt/rfQsH/src/optimizer.jl:309
┌ Warning: Suboptimal solution detected for subproblem with status INVALID_OPTION
└ @ SchwarzOpt ~/.julia/packages/SchwarzOpt/rfQsH/src/optimizer.jl:309
Iter | Obj | Prf | Duf
1 | 0.00e+00 | 0.00e+00 | 0.00e+00
Number of Iterations: 1
Time spent in subproblems: 239.197291583
Solution Time: 298.77887892723083
EXIT: SchwarzOpt Finished with status: INVALID_OPTION