ggebbie / TMI.jl

Total Matrix Intercomparison for Julia
MIT License
8 stars 3 forks source link

Steps needed to invert model output #134

Open cspencerjones opened 11 months ago

cspencerjones commented 11 months ago

This is my first attempt at writing down the steps required to get to a place where we can invert model output to get the transport matrix. Comments welcome!

cspencerjones commented 10 months ago

I have been playing around here: https://github.com/ggebbie/TMI.jl/blob/d0971825c9f60552400dd83e50aa194748577840/src/TMI.jl#L2219-L2295 (script to run this is here: https://github.com/ggebbie/TMI.jl/blob/invert-model/scripts/invert_model_TS.jl)

If I optimize right now the cost function grows, so I'm definitely doing something wrong. It was working ok until I implemented the Lagrange multipliers, so I probably have an error there. I'm mostly just posting this so that we can look at the code and talk about it at some point - see if I'm going in a good direction or if I need to refocus/rethink.

ggebbie commented 10 months ago

I'll take a look. I am currently working on issue #123 which has led me to refactor many things. I can help merge your work with the other changes.

cspencerjones commented 9 months ago

Updated list given that we are not learning the cross-face flux, but the water-mass matrix

cspencerjones commented 8 months ago

I ended up getting rid of some of the Lagrange multiplier code but I now think I'm optimizing successfully here: https://github.com/ggebbie/TMI.jl/tree/invert-model.

The next step is to try this on actual model output.