manuel-delverme / constrained_optimization

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Dual variables initialization #7

Closed juan43ramirez closed 3 years ago

juan43ramirez commented 3 years ago

https://github.com/manuel-delverme/constrained_optimization/blob/6469787ea46ec45b313e45c79213673eaed995ea/src/torch_constrained/constrained_optimizer.py#L39-L40 Line 39 evaluates the same condition twice. Should the dual variables be initialized in the init method?