Comments (9)
This is interesting. It would be helpful if you somehow give me that matrix
you are using so I can recreate the problem, fix the issue and add a
unittest.
Tomas
On Sun, May 8, 2016 at 2:22 PM, Martin Zellner [email protected]
wrote:
OPTALG slove() crashes with the following error (which is not caught as
an Python Exception):lda must be >= MAX(N,1): lda=5 N=6BLAS error: Parameter number 7 passed to
cblas_dtrsv had an invalid valueProbably there is something odd with my matrix structure, however this
should not lead to a crash without any Python output.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1
from optalg.
I hope saving the matrices worked:
crash.npz.zip
from optalg.
It might be platform specific though (OpenBLAS vs. Apple Accelerate)..
from optalg.
There are several odd things in the code above:
- variables need to be specified before constructing a problem (as an example, see the DCOPF problem construction in GRIDOPT). Your optimization problem has no variables.
- generator Q participations are not needed since Q should not be variables,
- generator P participations are needed when there is more than one generator connected to a bus (unless the objective function removes extra degrees of freedom)
- you are missing the LBOUND constraint to get l <= Gx <= u with G=identity
- p.gphi is not equal to the g argument of the QP problem. gphi(x) is equal to g + Hx
- in your problem above, p.l and p.u are meaningless since no inequality constraints have been constructed.
from optalg.
Thanks for the remarks. I will change the code accordingly. Mostly your points are taken care of within the MPProblem class at the moment (e.g. variable definition). This needs to be changed, but the problem should not be affected by this.
Concerning 5): Can I get g
somehow?
from optalg.
Yes, use the identity given in the previous comment: g + Hx = gphi(x),
solve for g
On Sun, May 8, 2016 at 8:46 PM, Martin Zellner [email protected]
wrote:
Thanks for the remarks. I will change the code accordingly. Mostly your
points are taken care of within the MPProblem class at the moment (e.g.
variable definition). This needs to be changed, but the problem should not
be affected by this.
Concerning 5): Can I get gsomehow?—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)
from optalg.
Just as a remark: The crash only occurs when I add the battery energy constraints. So I assume something is odd with my A matrix...
from optalg.
I could track it down further. This happens when a all-zero column appears in the A matrix (which shouldn't happen).
I think there should be an Exception complaining about the matrix being rank deficient.
from optalg.
It is not as simple as that. Rank of A is not the rank the optimization algorithm cares about, but the rank of the KKT matrix. I suspect the linear solver is throwing the error. The linear solver should be throwing a python exception. If not, then the wrapper has a bug (either superlu or mumps, I am not sure which one you are using). The wrappers are external to optalg. However, I am sure some checks can be added at the beginning of the solve method to check bad data easily. I will take care of this as soon as I have time.
from optalg.
Related Issues (20)
- opt solver throw error or warning when bad parameter in set_parameters
- switch to setuptools and setup pip HOT 1
- add regularization to obj Hessian in augl when using gauss-newton
- change solver "parameters" to __parameters HOT 1
- make inlp algorithm globally convergent
- show solver status at the end of output HOT 1
- get CBC wrapper working again HOT 1
- in buid_lib scripts, check whether zip exists before download
- inlp not showing info about last iterate before exit HOT 1
- catch all lin solver-specific error exceptions and forward them as single exception type
- update travis to use os matrix HOT 1
- Expose `expect_infeasible_problem` ipopt setting HOT 2
- catch ipopt solver error messages and include them in OptSolverError_Ipopt
- enhance build scripts to have timeout for mumps and default to no ipopt when this happens
- clp is holding memory of primal variables, causing corruption issues when it gets garbage collected
- add command-line-based wrappers for CBC and CLP that work on both linux and windows HOT 1
- set up appveyor
- add .mps writer
- add .lp writer HOT 1
- command-line-based cplex interface HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optalg.