<div dir="ltr"><div>Two part question - my math is a bit rusty on the nuances of OR , been a few years. <br></div><div><br></div><div>1) I'm trying out CLP and have this generated LP table</div><div><br></div><div><br></div><div>max USDC<br>subject to<br>   USDC + USDCWETH + USDCDAI + USDCUSDT - 344.142191 WETHUSDC - 1.020079 DAIUSDC - 0.993586 USDTUSDC = 1<br>   WETHUSDC + WETHDAI + WETHUSDT - 0.002888359217726139 USDCWETH - 0.002953897534741168 DAIWETH - 0.002886918859189835 USDTWETH = 0<br>   DAIUSDC + DAIWETH + DAIUSDT - 0.974437656908750917 USDCDAI - 336.50626753022552063 WETHDAI - 0.972658375688681427 USDTDAI = 0<br>   USDTUSDC + USDTWETH + USDTDAI - 1.000424 USDCUSDT - 344.313875 WETHUSDT - 1.021948 DAIUSDT = 0<br>bounds<br>  USDC <= 2000<br>end</div><div><br></div><div><br></div><div>Now running it in own cpp code, </div><div><br></div><div>  ClpSimplex model;</div><div>      model.primal();</div><div><br></div><div>I get:</div><div> <br></div><div>USDC: 1<br>USDCWETH: 0<br>USDCDAI: 0<br>USDCUSDT: 0<br>WETHUSDC: 0<br>DAIUSDC: 0<br>USDTUSDC: 0<br>WETHDAI: 0<br>WETHUSDT: 0<br>DAIWETH: 0<br>USDTWETH: 0<br>DAIUSDT: 0<br>USDTDAI: 0</div><div><br></div><div>Question: What does this imply? Does it mean there is degeneracy in the solution space? I also tried `model.dual()` but same results. Ought I to use something other than `ClpSimplex`? I suspected there might be an issue for the numerical percision, that is, to use the latest which I see there is `long double`, but that code hasn't been released under the tarball release here (<a href="https://www.coin-or.org/download/source/Clp/">https://www.coin-or.org/download/source/Clp/</a>) (I'm using latest at this time which is 1.17.6, appreciate if newer version released with long double be uploaded, yes i know about the build from source coinbrew, etc but had trouble with it, prefer this tarball approach) <br></div><div><br></div><div>2) What about the occasions when a pairing does not exist, is it sufficient to simply leave out that variable, or add the variable but with coefficient of 0? In the examples I've seen, only the diagonal contains no value. <br></div><div><br></div><div>Thank you <br></div><div><br></div></div>