Skip to content

Commit 21b9dca

Browse files
committed
mention lambert W option
1 parent 9f2e2f0 commit 21b9dca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Bridges/Constraint/relentr_to_exp.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ end
106106
# Given constraint dual start of (u, v, w), constraint dual on GreaterThan is u
107107
# and on exponential cone constraint i is (r_i, w_i, v_i), but since y_i is free,
108108
# its dual is 0, so we have -r_i + value[1] == 0 hence r_i = value[1].
109+
# Note: alternatively, we could use the Lambert W function to calculate
110+
# r_i = exp(W(-w_i / (-v_i * e))) * (-v_i * e), but this is more complicated.
109111
function MOI.set(model::MOI.ModelLike, ::MOI.ConstraintDualStart, bridge::RelativeEntropyBridge, value)
110112
MOI.set(model, MOI.ConstraintDualStart(), bridge.ge_index, value[1])
111113
w_start = 1 + length(bridge.y)

0 commit comments

Comments
 (0)