code: def solve(self):
          '''
          Solves the cstwMPCmarket.
          '''
          if self.AggShockBool:
              for agent in self.agents:
                  agent.getEconomyData(self)
              Market.solve(self)
          else:
              self.solveAgents()
              self.makeHistory(f solve(self):
          '''
          Solves the cstwMPCmarket.
          '''
          if self.AggShockBool:
              for agent in self.agents:
                  agent.getEconomyData(self)
              Market.solve(self)
          else:
              self.solveAgents()
              self.makeHistory()
docs: Solves the cstwMPCmarket.