Skip to content

Unsupported nonlinear constraints #350

@JunchengLiamLi

Description

@JunchengLiamLi

It seems me that some nonlinear constraints in my code is not supported by SCIP.jl

The nonlinear constraints are like the following:

JuMP.@NLconstraint(mod, real_flow[1] == G[br_idx,n1,n1]*v[1]^2 + G[br_idx,n1,n2]*v[1]*v[2]*cos(δ) + B[br_idx,n1,n2]*v[1]*v[2]*sin(δ));
JuMP.@NLconstraint(mod, real_flow[2] == G[br_idx,n2,n2]*v[2]^2 + G[br_idx,n2,n1]*v[1]*v[2]*cos(δ) + B[br_idx,n2,n1]*v[1]*v[2]*sin(-δ));
JuMP.@NLconstraint(mod, imag_flow[1] == -B[br_idx,n1,n1]*v[1]^2 - B[br_idx,n1,n2]*v[1]*v[2]*cos(δ) + G[br_idx,n1,n2]*v[1]*v[2]*sin(δ));
JuMP.@NLconstraint(mod, imag_flow[2] == -B[br_idx,n2,n2]*v[2]^2 - B[br_idx,n2,n1]*v[1]*v[2]*cos(δ) + G[br_idx,n2,n1]*v[1]*v[2]*sin(-δ));

JuMP.@NLconstraint(mod, cur_mag_sqr == (g^2 + b^2)*(v[1]^2/tm^2 + v[2]^2 - 2*(tr*v[1]*v[2]*cos(δ) + ti*v[1]*v[2]*sin(δ))/tm^2) 
    - ym_sh_sqr*(v[1]^2/tm^2) + 2*(g_fr*real_flow[1] - b_fr*imag_flow[1]));
JuMP.@NLconstraint(mod, real_flow[1]^2 + imag_flow[1]^2 ≤ v[1]^2/tm^2*cur_mag_sqr);
JuMP.@NLconstraint(mod, real_flow[1]^2 + imag_flow[1]^2 ≤ branch["rate_a"]^2);
JuMP.@NLconstraint(mod, real_flow[2]^2 + imag_flow[2]^2 ≤ branch["rate_a"]^2);

Please see the following error message:

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0xffffffffa12f0000 -- unknown function (ip: ffffffffa12f0000)
in expression starting at D:\OneDrive - Lancaster University\Code\PowerModels.jl\src\dev\parameter_sequential.jl:273
unknown function (ip: ffffffffa12f0000)
Allocations: 21650076 (Pool: 21630360; Big: 19716); GC: 29

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x52b728c -- SCIPprobFree at C:\Users\Liam.julia\artifacts\08af979d049d4b61a282acfbe2e12e36329f06c7\bin\libscip.dll (unknown line)
in expression starting at D:\OneDrive - Lancaster University\Code\PowerModels.jl\src\dev\parameter_sequential.jl:273
SCIPprobFree at C:\Users\Liam.julia\artifacts\08af979d049d4b61a282acfbe2e12e36329f06c7\bin\libscip.dll (unknown line)
SCIPfreeTransform at C:\Users\Liam.julia\artifacts\08af979d049d4b61a282acfbe2e12e36329f06c7\bin\libscip.dll (unknown line)
SCIPfreeProb at C:\Users\Liam.julia\artifacts\08af979d049d4b61a282acfbe2e12e36329f06c7\bin\libscip.dll (unknown line)
SCIPfree at C:\Users\Liam.julia\artifacts\08af979d049d4b61a282acfbe2e12e36329f06c7\bin\libscip.dll (unknown line)
SCIPfree at C:\Users\Liam.julia\packages\SCIP\XjNY6\src\LibSCIP.jl:3878
unknown function (ip: 000002415e83becb)
macro expansion at C:\Users\Liam.julia\packages\SCIP\XjNY6\src\wrapper.jl:11 [inlined]
free_scip at C:\Users\Liam.julia\packages\SCIP\XjNY6\src\scip_data.jl:70
free_scip at C:\Users\Liam.julia\packages\SCIP\XjNY6\src\MOI_wrapper.jl:60
unknown function (ip: 000002419414813b)
run_finalizer at C:/workdir/src\gc.c:318
jl_gc_run_finalizers_in_list at C:/workdir/src\gc.c:408
run_finalizers at C:/workdir/src\gc.c:454
ijl_atexit_hook at C:/workdir/src\init.c:299
ijl_exit at C:/workdir/src\init.c:207
jl_exception_handler at C:/workdir/src\signals-win.c:337 [inlined]
jl_exception_handler at C:/workdir/src\signals-win.c:229
__julia_personality at C:/workdir/src\win32_ucontext.c:28
_chkstk at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlLocateExtendedFeature at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
KiUserExceptionDispatcher at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
unknown function (ip: ffffffffa12effff)
Allocations: 21650076 (Pool: 21630360; Big: 19716); GC: 29

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions