MCPcopy Create free account
hub / github.com/cvxpy/cvxpy / get_x

Method get_x

cvxpy/tests/test_examples.py:197–200  ·  view source on GitHub ↗
(gamma_value)

Source from the content-addressed store, hash-verified

195
196 # Assign a value to gamma and find the optimal x.
197 def get_x(gamma_value):
198 gamma.value = gamma_value
199 p.solve(solver=cvx.SCS)
200 return x.value
201
202 gammas = np.logspace(-1, 2, num=2)
203 # Serial computation.

Callers 2

invertMethod · 0.80
solve_via_dataMethod · 0.80

Calls 1

solveMethod · 0.45

Tested by

no test coverage detected