The global fixed income market is an enormous financial market whose value by far exceeds that of the public stock markets. The interbank market consists of interest rate derivatives, whose primary purpose is to manage interest rate risk. The credit market primarily consists of the bond market, which links investors to companies, institutions, and governments with borrowing needs. This dissertation takes an optimization perspective upon modeling both these areas of the fixed-income market. Legislators on the national markets require financial actors to value their financial assets in accordance with market prices. Thus, prices of many assets, which are not publicly traded, must be determined mathematically. The financial quantities needed for pricing are not directly observable but must be measured through solving inverse optimization problems. These measurements are based on the available market prices, which are observed with various degrees of measurement noise. For the interbank market, the relevant financial quantities consist of term structures of interest rates, which are curves displaying the market rates for different maturities. For the bond market, credit risk is an additional factor that can be modeled through default intensity curves and term structures of recovery rates in case of default. By formulating suitable optimization models, the different underlying financial quantities can be measured in accordance with observable market prices, while conditions for economic realism are imposed.