# Recovering different form from JuMP model

**URL:** <https://discourse.julialang.org/t/recovering-different-form-from-jump-model/97401>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [April 12, 2023, 6:20pm UTC](https://discourse.julialang.org/t/recovering-different-form-from-jump-model/97401 "2023-04-12T18:20:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [April 12, 2023, 7:04pm UTC](https://discourse.julialang.org/t/recovering-different-form-from-jump-model/97401/2 "2023-04-12T19:04:35Z")

</div>

There’s no simple way.

This question has some code to help. The `solve_pdhg` function provides `A, b, c` (for `Ax = b`):

> [@Connecting a simple first-order solver to solve standard form linear program to JuMP](https://discourse.julialang.org/t/connecting-a-simple-first-order-solver-to-solve-standard-form-linear-program-to-jump/95694/4):
>
> Try this: module SimplePDHG import MathOptInterface as MOI import SparseArrays """ solve\_pdhg( A::SparseArrays.SparseMatrixCSC{Float64,Int}, b::Vector{Float64}, c::Vector{Float64}, )::Tuple{MOI.TerminationStatusCode,Vector{Float64}} """ function solve\_pdhg( A::SparseArrays.SparseMatrixCSC{Float64,Int}, b::Vector{Float64}, c::Vector{Float64}, )::Tuple{MOI.TerminationStatusCode,Vector{Float64}} x = fill(NaN, size(A, 2)) return MOI.OTHER\_ERROR,…

You shouldn’t rely on th `JuMP._standard_form_matrix` function. Function beginning with `_` are private and may change or be delete at any point.

This questio keeps coming up, so I should add an answer to the documentation: [Suggestions for documentation improvements · Issue #2348 · jump-dev/JuMP.jl · GitHub](https://github.com/jump-dev/JuMP.jl/issues/2348#issuecomment-1458922737)

---

_[View the full topic](https://discourse.julialang.org/t/recovering-different-form-from-jump-model/97401)._
