Hi Robert,
Thank’s for facing the problem.
Unfortunately, it is depicted that the variable is in both problems considered (“in”). Here is the output (pr1 is IEEOptTool_pandapower_problem and pr2 is IEEOptTool_pandapower_problem_hard).
v_bra_tap_pos :=
1 96 5
1 97 9
1 98 6
;
problem IEEOptTool_pandapower_problem_hard;
problem IEEOptTool_pandapower_problem: f_obj_sl, v_bra_tap_pos, v_bus_vm,
v_bus_va, v_gen_p, v_gen_q, c_add_acpf_p, c_add_acpf_q, c_bus_vmMin,
c_bus_vmMax, c_bra_util_12, c_bra_util_21, c_gen_pMin, c_gen_pMax,
c_gen_qMin, c_gen_qMax, c_gen_q_bus_distr;
problem IEEOptTool_pandapower_problem_hard: f_P_LOSS, v_bus_vm, v_bus_va,
v_gen_p, v_gen_q, c_add_acpf_p, c_add_acpf_q, c_bus_vmMin, c_bus_vmMax,
c_bra_util_12, c_bra_util_21, c_gen_pMin, c_gen_pMax, c_gen_qMin,
c_gen_qMax, c_gen_q_bus_distr, c_TSO_DSO_QNVP_sum_setp,
c_TSO_DSO_vm_setps;
v_bra_tap_pos.astatus :=
1 96 in
1 97 in
1 98 in
;
v_bra_tap_pos :=
1 96 5
1 97 9
1 98 6
;
v_bra_tap_pos[s,i].relax :=
1 96 0
1 97 0
1 98 0
;
problem IEEOptTool_pandapower_problem_hard;
problem IEEOptTool_pandapower_problem: f_obj_sl, v_bra_tap_pos, v_bus_vm,
v_bus_va, v_gen_p, v_gen_q, c_add_acpf_p, c_add_acpf_q, c_bus_vmMin,
c_bus_vmMax, c_bra_util_12, c_bra_util_21, c_gen_pMin, c_gen_pMax,
c_gen_qMin, c_gen_qMax, c_gen_q_bus_distr;
problem IEEOptTool_pandapower_problem_hard: f_P_LOSS, v_bus_vm, v_bus_va,
v_gen_p, v_gen_q, c_add_acpf_p, c_add_acpf_q, c_bus_vmMin, c_bus_vmMax,
c_bra_util_12, c_bra_util_21, c_gen_pMin, c_gen_pMax, c_gen_qMin,
c_gen_qMax, c_gen_q_bus_distr, c_TSO_DSO_QNVP_sum_setp,
c_TSO_DSO_vm_setps;
v_bra_tap_pos.astatus :=
1 96 in
1 97 in
1 98 in
;
Ipopt 3.12.13: outlev=2
==> Warning: Treating 0 binary and 3 integer variables as continous.
Ipopt 3.12.13: Optimal Solution Found
problem IEEOptTool_pandapower_problem_hard;
problem IEEOptTool_pandapower_problem: f_obj_sl, v_bra_tap_pos, v_bus_vm,
v_bus_va, v_gen_p, v_gen_q, c_add_acpf_p, c_add_acpf_q, c_bus_vmMin,
c_bus_vmMax, c_bra_util_12, c_bra_util_21, c_gen_pMin, c_gen_pMax,
c_gen_qMin, c_gen_qMax, c_gen_q_bus_distr;
problem IEEOptTool_pandapower_problem_hard: f_P_LOSS, v_bus_vm, v_bus_va,
v_gen_p, v_gen_q, c_add_acpf_p, c_add_acpf_q, c_bus_vmMin, c_bus_vmMax,
c_bra_util_12, c_bra_util_21, c_gen_pMin, c_gen_pMax, c_gen_qMin,
c_gen_qMax, c_gen_q_bus_distr, c_TSO_DSO_QNVP_sum_setp,
c_TSO_DSO_vm_setps;
v_bra_tap_pos.astatus :=
1 96 in
1 97 in
1 98 in
;
v_bra_tap_pos :=
1 96 -2.36994
1 97 -0.0189152
1 98 -2.407
;
As depicted, variable" v_bra_tap_pos" is only defined in problem " IEEOptTool_pandapower_problem" and not in " IEEOptTool_pandapower_problem_hard". However, it has the status “in” activating and solving this problem resulting in modified values.
There is the warning of solver “ipopt” that integer variables are treated as continous, but the variable already has this status activating the problem.
Best regards,
Lothar