question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Response from mosek affected by non-model changes

See original GitHub issue

I’ve been having some issues with some of my larger models (12000+ free variables) recently, where if I make a change that has no effect on the model (e.g. calling from a different script, making an inconsequential change to the high level script etc.), mosek returns unknown, or conversely is able to solve a model for which it previously returned unknown.

For the most recent instance, I tried comparing the two A-matrices and I believe they are different (In [16]: np.allclose(A1.todense(), A2.todense()) Out[16]: False), which makes sense if mosek is giving different responses.

Does anyone have any suggestions for how to better understand what is going on? And are there tolerances I can tune in mosek via GPkit?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
pgkirschcommented, Apr 29, 2020

Wow ~40% speed-up on my largest test case, nice work @bqpd!

0reactions
bqpdcommented, Jul 3, 2020

oh, the one generated by the mosek_cli solve process! mskexpopt takes a file as input, so we solve by making a text file and then passing its location.

if you solve with solve("mosek_cli", path="/home/pgkirsch/") (or similar) it’ll generate the file at a more visible location and not delete it after solving.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Actions · convexengineering/gpkit - GitHub
"SGP not convergent" warning should be affected by verbosity? ... Response from mosek affected by non-model changes Greetings #84: Issue #1491 labeled by ......
Read more >
7.10 Problem Modification and Reoptimization - Mosek
This tutorial demonstrates how to modify a model by adding new elements and changing existing ones. If instead you want to create one...
Read more >
1 Technical Issues — MOSEK FAQ 10.0.33 - Documentation
When invoking the solver, pass a dictionary mosek_params with pairs parameter: ... and its size will not be affected by subsequent changes of...
Read more >
15.8 Response codes — MOSEK Optimizer API for Python ...
The numerical code (in brackets) identifies the response in error messages ... Some names were changed because they were invalid for the output...
Read more >
7.2 Errors and exceptions — MOSEK Rmosek package 10.0.31
Response codes. The function mosek returns a response code (and its human-readable description), informing if optimization was performed correctly, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found