<div dir="ltr"><div dir="ltr">Hi Todor,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 14, 2019 at 3:06 AM Todor Balabanov <<a href="mailto:todor.balabanov@gmail.com" target="_blank">todor.balabanov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" class="m_1862407336282069049gmail-m_1662519967006457206gmail-m_-7094607949299735570gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>Hello!<br></div></div><div><br></div><div>Currently DE implementation in NLPSover has a coefficient called FACTOR:<br></div><div><br></div><div><a href="https://github.com/LibreOffice/core/blob/f4ba484183a1e7b9824f10580d633466c266828f/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/DEGTBehavior.java#L41" target="_blank">https://github.com/LibreOffice/core/blob/f4ba484183a1e7b9824f10580d633466c266828f/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/DEGTBehavior.java#L41</a><br></div><div><br></div><div><a href="https://github.com/LibreOffice/core/blob/330df37c7e2af0564bcd2de1f171bed4befcc074/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/DEPSSolverImpl.java#L129" target="_blank">https://github.com/LibreOffice/core/blob/330df37c7e2af0564bcd2de1f171bed4befcc074/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/DEPSSolverImpl.java#L129</a><br></div><div><br></div><div>There are some researches about multiple values of the scaling factor: </div><div><br></div><div><a href="https://www.sciencedirect.com/science/article/pii/S0020025511000909" target="_blank">https://www.sciencedirect.com/science/article/pii/S0020025511000909</a><br></div><div><br></div><div>My idea is FACTOR to be replaced with two coefficients:<br><br>MIN_FACTOR<br><br>MAX_FACTOR</div><div><br>We can keep default values for them 0.5, as it is in the source code now. When we have MIN_FACTOR == MAX_FACTOR the algorithm will believe as it behaves now. When we have MIN_FACTOR < MAX_FACTOR each time when FACTOR is needed we can select random uniform value in the range. <br><br>What do you think?<br></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>It sounds good to me. I don't think many developers have a great knowledge of nlpsolver so feel free to change that if it actually helps to iterate towards a solution faster. I'm sure since nlpsolver was written there were quite some advances in DE and PSO algorithms, which we could incorporate.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" class="m_1862407336282069049gmail-m_1662519967006457206gmail-m_-7094607949299735570gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div><div>All the best,</div><div>Todor</div><br></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>Best Regards, <br></div><div>Tomaž Vajngerl<br></div></div></div>