cvxopt

How to perform operations on cvxopt-matrices a la numpy?

How to perform operations on cvxopt-matrices a la numpy? Question: I am working with cvxopt matrices in order to use them in picos library. In general I want to take a matrix, evaluate it on a certain vector, subtract something, then take the biggest absolute value of its entries import picos as pic import cvxopt …

Total answers: 2

How to Access CVXPY Variables/Parameters After Declaration

How to Access CVXPY Variables/Parameters After Declaration Question: I’d like to standardize a few cvxpy problems and use them in many places in my codebase. Here is a cleaned example: from cvxpy import Variable, Parameter, Problem, Minimize def problem_builder(n, …) var = Variable(n) param = Parameter(n) costs = #Some complex convex function of var and …

Total answers: 2