Skip to content

Commit

Permalink
Mosek: fix C API
Browse files Browse the repository at this point in the history
  • Loading branch information
mapgccv committed Jun 10, 2023
1 parent d72d28e commit 9368149
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions solvers/mosek/mosekbackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -876,13 +876,12 @@ AMPLS_MP_Solver* Open_mosek(CCallbacks cb = {}) {
cb);
}


void AMPLSClose_mosek(AMPLS_MP_Solver* slv) {
AMPLS__internal__Close(slv);
}

void* AMPLSGetModel_mosek(AMPLS_MP_Solver* slv) {
return
dynamic_cast<mp::CbcmpBackend*>(AMPLSGetBackend(slv))->lp();
dynamic_cast<mp::MosekBackend*>(AMPLSGetBackend(slv))->lp();
}

0 comments on commit 9368149

Please sign in to comment.