JuliaSmoothOptimizers / JSOSuite.jl

One stop solutions for all things optimization
Mozilla Public License 2.0
22 stars 6 forks source link

Implement default options for solvers and set no verbosity as default #151

Open abelsiqueira opened 3 months ago

abelsiqueira commented 3 months ago

While working on #144, I had the issue of telling all solvers to shut up. Since they don't all accept verbose = 0, or all use the logging, there needs to be some checking on the solver name or type.

One simple solution is to create a dict on the solver name.

Another, that I used here, is to create a function that dispatches on the solver type.

Another is to make sure that all our solvers and wrappers accept verbose::Int and translate adequately. This might be infeasible to do right.

abelsiqueira commented 3 months ago

Also, some solver don't have a low verbosity mode, apparently. I just created an issue for RipQP: https://github.com/JuliaSmoothOptimizers/RipQP.jl/issues/294

tmigot commented 3 months ago

Isn't this doing the job https://github.com/JuliaSmoothOptimizers/JSOSuite.jl/blob/d11d0f64b7d5921b3d7d5b492964afe192a87157/src/solvers/ripqp_solve.jl#L9 ?

abelsiqueira commented 3 months ago

For some reason, it was not enough, I don't remember why right now. I closed the issue on RipQP side, though.