Category "cvxpy"

Displaying the solution at each iteration by using CVXPY

By using CVXPY, I want to solve this simple convex optimization problem:- min ||z||^2 subject to z = Ax - b where A and b are given The code is as follows:- x =

Imposing constraints on all (numbered) diagonals in CVXPY

I am looking to implement a constraint on an optimization on all diagonals of a matrix using CVXPY. The diag function in CVXPY only returns the main diagonal.

No strict inequalities in cvxpy problem but still get the error "Strict inequalities are not allowed"

I was using the CVXPY library in Python, trying to solve a particular optimization problem. import cvxpy as cp import numpy as np from scipy.stats import norm

Integer Programming for NNC

I'm trying to implement Integer Programming for Nearest Neighbor Classifier in python using cvxpy. Short intro Given a dataset of n points with a color (red or

Integer Programming for NNC

I'm trying to implement Integer Programming for Nearest Neighbor Classifier in python using cvxpy. Short intro Given a dataset of n points with a color (red or