Skip to main content
0 votes
1 answer
30 views

Get Dual Bound of a QP with CPlex

When one wants to solve a convex Quadratic Problem in Cplex with a given time limit, how is it possible to get lower and upper bounds on the actual optimal value ? The primal and dual objective value ...
user2485450's user avatar
1 vote
0 answers
64 views

Can I use the Active Set Method through cvxpy? Which solvers support it?

I’m working with quadratic programming (QP) problems and want to use the Active Set Method (ASM) specifically. I’d like to stay within the cvxpy framework for defining and solving the problem. I know ...
Daredevil Murdock's user avatar
0 votes
1 answer
116 views

Discrepancy in qpOASES Optimal Solutions Between C++ and MATLAB Implementations

I have implemented a quadratic programming problem using qpOASES in MATLAB and C++. The optimal solutions differ despite using the same matrices and vectors in both environments. The MATLAB ...
MUHAMMAD SAQIB's user avatar
0 votes
1 answer
221 views

Scipy optimize SLSQP: How is the 'ftol' parameter used?

I am wondering how the 'ftol' paramater in scipy.optimize.minimize(method='SLSQP') is used. In the documentation it just says, that it is the precision goal for the value of f, which could mean ...
user25106562's user avatar
0 votes
0 answers
558 views

Trouble Building osqp-eigen Library

I'm encountering challenges while building and installing the osqp-eigen library in my C++ environment. My objective is to implement a quadratic programming function similar to MATLAB's quadprog() ...
Bahareh's user avatar
0 votes
0 answers
112 views

Significant Difference in Execution Time Between R's solve.QP and Python's scipy.optimize.minimize for Quadratic Programming

I'm working on a quadratic programming problem and have implemented solutions in both R and Python. However, I've noticed a significant difference in execution times between these two implementations, ...
Martin Inf1n1ty's user avatar
1 vote
0 answers
177 views

Solve Quadratically Constrained Linear Objective Function in R

Context A bit of context is in order. I am currently migrating an Excel tool (sigh!) to n Shiny app. Excel is using the solver Addin to find an "optimal" solution. Now I am looking for a ...
thothal's user avatar
  • 20.6k
0 votes
1 answer
104 views

Trying to understand why my formulation is non-convex? (gurobipy.GurobiError: Q matrix is not positive semi-definite (PSD))

I am trying to implement a SOCP that I believe to be convex, but when I run it on a small instance I get the error: gurobipy.GurobiError: Q matrix is not positive semi-definite (PSD). Set NonConvex ...
Hean Wooi's user avatar
0 votes
1 answer
167 views

Portfolio Optimization in R with transaction costs

The goal is to rebalance the portfolio using the transaction costs as a penalty. I tried to rewrite the example for portfolio optimization with transaction costs from the mosek homepage: https://docs....
leu's user avatar
  • 125
1 vote
0 answers
723 views

CVXPY finds no solution (unbounded) to a problem that definitely has a solution - how to debug

I encountered the following special case where CVXPY was returning a None solution, with status unbounded, for a problem that definitely has a solution. It doesn't seem like I can enter LaTeX, so @ ...
Marses's user avatar
  • 1,602
1 vote
1 answer
338 views

How to solve quadratically constrained linear program in R with clarabel

I'm looking for some help converting a quadratic constraint into the form needed for the clarabel optimization package (second-order cone programming solver). Firstly, here is just the linear part of ...
Charles's user avatar
  • 4,479
0 votes
1 answer
796 views

qpsolvers error: "SolverNotFound: solver 'cvxopt' is not in the list ['ecos', 'osqp', 'quadprog', 'scs'] of available solvers"

I am trying to use qpsolvers library to solve a quadratic program using the 'cvxopt' solver, but I keep getting the following error: SolverNotFound: solver 'cvxopt' is not in the list ['ecos', 'osqp', ...
trash627's user avatar
0 votes
0 answers
127 views

how come I got negative weights despite the no-short sales constraint in the portfolio optimization problem?

I used the CVXR library to find the weights of a minimum variance portfolio consisting of 183 assets. (1) min(w) (1/2)*((w)^T)*sigma*(w) (2) ...
Vito 's user avatar
0 votes
1 answer
975 views

CVXPY claims matrix is not symmetric and PSD despite my matrix being symmetric and PSD

I have a quadratic program (see below) that causes an error due to my quad_form matrix being not symmetric or PSD. Why is this happening? (Note that the issue is with my matrix P below so feel free to ...
Resu's user avatar
  • 219
1 vote
1 answer
718 views

When resulting in an infeasible model, what tips are there to break down the nexus of the issue

I am new to using or-tools and I have been tasked with minimizing a quadratic objective function with lots of IntVar variables. I don't know where to start breaking down what the problem could be ...
Tejas's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
16