jump-dev / Pajarito.jl

A solver for mixed-integer convex optimization
Mozilla Public License 2.0
131 stars 22 forks source link

add more examples and tests #332

Closed chriscoey closed 7 years ago

chriscoey commented 7 years ago

fixes #328 fixes #334 fixes #319 fixes #322

chriscoey commented 7 years ago

so far, only added gate sizing example from cvx (hard-coded, convex.jl). next I will add a version of Ising model problem (also convex.jl).

gate sizing solves easily yet is non-trivial, so it is a good test. i will but into cbf and into tests

codecov[bot] commented 7 years ago

Codecov Report

Merging #332 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #332   +/-   ##
======================================
  Coverage    90.5%   90.5%           
======================================
  Files           4       4           
  Lines        1728    1728           
======================================
  Hits         1564    1564           
  Misses        164     164

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fe7b569...f53d03e. Read the comment docs.

codecov[bot] commented 7 years ago

Codecov Report

Merging #332 into master will decrease coverage by 35.25%. The diff coverage is 60%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #332       +/-   ##
===========================================
- Coverage    90.5%   55.25%   -35.26%     
===========================================
  Files           4        4               
  Lines        1728     1712       -16     
===========================================
- Hits         1564      946      -618     
- Misses        164      766      +602
Impacted Files Coverage Δ
src/solver.jl 52.94% <0%> (-24.61%) :arrow_down:
src/conic_algorithm.jl 75.08% <85.71%> (-15.22%) :arrow_down:
src/nonlinear_algorithm.jl 0% <0%> (-93.68%) :arrow_down:
src/conic_dual_solver.jl 0% <0%> (-73.08%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6ca5c77...c0c50ce. Read the comment docs.

chriscoey commented 7 years ago

gatesizing test now used for both NLP and conic solvers, passes!

chriscoey commented 7 years ago

nearly finished Ising

chriscoey commented 7 years ago

nice thing is that Ising can be mixed-SOC-Exp depending on which options you use

chriscoey commented 7 years ago

unfortunately generating Ising data was a huge pain, so i left it out of examples and just added one MPB format test.

I have added a cardinality constrained least squares problem, in both MIQP and MISDP forms (equivalent). Have not tested the MIQP part yet because need #336

chriscoey commented 7 years ago

oh woops yes i will remove others.jl that was just staging

chriscoey commented 7 years ago

still need to add the MISDP, MIQP, converted MIQP to tests

chriscoey commented 7 years ago

bug in something I changed in transform function was exposed by zero cone test so I'll have to look at the diff