PerformanceEstimation / PEPit

PEPit is a package enabling computer-assisted worst-case analyses of first-order optimization methods.
https://pepit.readthedocs.io/en/latest/
MIT License
76 stars 10 forks source link

Refactor/pep #37

Closed bgoujaud closed 2 years ago

bgoujaud commented 2 years ago

L ensemble des changements est décrit en messages de commits: Tout est fait dans PEP. Le reste concerne l utilisation des changements. J ai vérifié:

Mais si vous voulez verifier que je n ai rien n oublié, c est cool! ;)

CMoucer commented 2 years ago
  • error in the test (I don't get it):

python -m unittest (PEPit) Setting up the problem: size of the main PSD matrix: 4x4 (PEPit) Setting up the problem: performance measure is minimum of 1 element(s) (PEPit) Setting up the problem: initial conditions (2 constraint(s) added) (PEPit) Setting up the problem: interpolation conditions for 1 function(s) function 1 : 6 constraint(s) added (PEPit) Compiling SDP (PEPit) Calling SDP solver (PEPit) Solver status: optimal (solver: MOSEK); optimal value: -6.331018474007843e-14 (PEPit) Postprocessing: solver's output is not entirely feasible (smallest eigenvalue of the Gram matrix is: -6.88e-14 < 0). Small deviation from 0 may simply be due to numerical error. Big ones should be deeply investigated. In any case, from now the provided values of parameters are based on the projection of the Gram matrix onto the cone of symmetric semi-definite matrix. F..............................................................................................

FAIL: test_counter (tests.test_constraints.TestConstraints)

Traceback (most recent call last): File "/home/adrien/Github/PEPit/PEPit/tests/test_constraints.py", line 67, in test_counter self.assertIs(self.problem.list_of_constraints[i].counter, i) AssertionError: 8 is not 0

Ran 95 tests in 15.711s

FAILED (failures=1)

python -m unittest tests.test_constraints .....

Ran 5 tests in 0.152s

OK

I don't have this problem