No backwards compatibility with MOSEK C api?
See original GitHub issueAs of 367a46dd78d4369b286784687c98e1314d064f08, GPkit can’t find my installation of mosek:
--> 518 sol = hl.localsolve()
519 sol.savetxt("fixedmass.sol")
520 sol.save("fixedmass.p")
~/Documents/Optimization/gpkit/gpkit/constraints/prog_factories.py in solvefn(self, solver, verbosity, skipsweepfailures, **kwargs)
124 else:
125 self.program, progsolve = genfunction(self, **kwargs)
--> 126 result = progsolve(solver, verbosity=verbosity, **kwargs)
127 solution.append(result)
128 solution.to_arrays()
~/Documents/Optimization/gpkit/gpkit/constraints/sgp.py in localsolve(self, solver, verbosity, x0, reltol, iteration_limit, mutategp, **solveargs)
152 print("===============")
153 solver_out = gp.solve(solver, verbosity=verbosity-1,
--> 154 gen_result=False, **solveargs)
155 self.solver_outs.append(solver_out)
156 cost = float(solver_out["objective"])
~/Documents/Optimization/gpkit/gpkit/constraints/gp.py in solve(self, solver, verbosity, process_result, gen_result, **kwargs)
180 result : SolutionArray
181 """
--> 182 solvername, solverfn = _get_solver(solver, kwargs)
183 solver_kwargs = DEFAULT_SOLVER_KWARGS.get(solvername, {})
184 solver_kwargs.update(kwargs)
~/Documents/Optimization/gpkit/gpkit/constraints/gp.py in _get_solver(solver, kwargs)
44 solver, optimize = solver.__name__, solver
45 else:
---> 46 raise ValueError("Unknown solver '%s'." % solver)
47 return solver, optimize
48
ValueError: Unknown solver 'mosek'.
So I tried re-building and got the following:
# Looking for mosek_conif
# Trying to import mosek...
# Did not find
# mosek_conif
#
What is mosek_conif
and do I need to do something to my mosek installation?
Judging by the commit notes for 367a46dd78d4369b286784687c98e1314d064f08, I may need to download something other than the C api?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
16.1 The LP File Format — MOSEK Optimizer API for C 10.0.27
MOSEK tries to emulate as closely as possible CPLEX's behavior, but tries to stay backward compatible. The LP file format can specify problems...
Read more >7.3 Errors and exceptions — MOSEK Optimizer API for C 10.0.32
They indicate non-critical but important events, that will not prevent solver execution, but may be an indication that something in the optimization problem ......
Read more >MOSEK Fusion API for Python
to using a low-level C API, but of course Fusion introduces a computational ... repeatedly for different inputs with almost no overhead.
Read more >1 Technical Issues — MOSEK FAQ 10.0.33 - Documentation
MOSEK has no official support for FORTRAN, but if the FORTRAN compiler supports C calling convention it should be possible use to the...
Read more >Cone Programming — CVXOPT User's Guide
For convenience (and backward compatibility), simpler interfaces to these function are also provided that handle pure linear programs, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah unfortunately supporting
mosek
in Python3 was shaping up to be a huge hassle; consideringmosek_cli
is almost identical in performance I was hoping everyone could use that instead, at least until Mosek9 is as fast.All good @1ozturkbe.
And ok, works for me @bqpd, good to know why.