PICOS is a user friendly Python API to several conic and integer programming solvers.
Questions tagged [picos-api]
8 questions
1
vote
1 answer
Specify the developement version of a python module
I want to add a new class to PICOS, a python module. I installed it the normal way a long time ago. But now I have downloaded the source and I a am trying to make some changes.
The problem is that I cannot manage to ask python to load the module…

Paul Fournel
- 10,807
- 9
- 40
- 68
0
votes
0 answers
PICOS library python
I am trying to multiply two matrices, in one I have a multidimensional values of sixe (96, 96, 2, 1) and I am trying to multiply it with an array of PICOS variables, it is possible to do this?? because the error that I have is:…

eldanks
- 11
- 2
0
votes
0 answers
equivalent export function in yalmip matlab into picos python
As I said, I am looking for the equivalent function into the library PICOS in python of the function export() from yalmip in matlab. Or how can I extract the matrices in normalised linear matrix form from an optimisation problem already written in…

eldanks
- 11
- 2
0
votes
2 answers
Using multiprocessing to call instances of a class method from another class
I need to use a multiprocessing technique in a class that call a method of another class. Below the explanation.
I am coding a multi-agent strategy. So, my code is structured in 3 classes:
agent class
environment class
main.
In the agent class, I…

Chaimaa
- 1
- 3
0
votes
1 answer
How to build a Picos affine expression?
I am using picos as a LP modeling language. However, I got the following inconsistency:
import picos as pic
prob_tmp = pic.Problem()
a_tmp = prob_tmp.add_variable("a",1)
eta_tmp = pic.new_param("eta",0.0341)
print (1-eta_tmp) * a_tmp
print a_tmp -…

user40780
- 1,828
- 7
- 29
- 50
0
votes
1 answer
Cannot impose a constraint of positive semi-definiteness on a matrix variable in PICOS optimization
I am trying to solve the following semi-definite program using Picos package. In fact, this is a SDP relaxation for solving the maxcut problem for the case of 3 subgraphs.
import picos as pic
maxcut = pic.Problem() …

Sergey Steblyov
- 11
- 1
0
votes
1 answer
Minimax optimization in PICOS
I have a generic question on how to solve optimization problems of the Min-Max type, using the PICOS package in Python. I found little information in this context while searching the PICOS documentation and on the web as well.
I can imagine a simple…

Pavithran Iyer
- 402
- 5
- 14
0
votes
2 answers
Making a Qobj out of a picos variable
I need to write a semidefinite program that minimizes the trace of an operator, say R, subject to the constraint that tr_A(R)^{Tb} >>0 . That means that R represents a 3 qubit quantum system and the trace over the first system gives you an operator…

Qubix
- 4,161
- 7
- 36
- 73