{
  "oppar": [
    [
      "vcc",
      "12",
      "10",
      "14"
    ],
    [
      "temperature",
      "25",
      "0",
      "100"
    ]
  ],
  "files": [
    [
      "2n3510.inc",
      {
        "external": true,
        "content": ""
      }
    ],
    [
      "bjtamp.inc",
      {
        "external": true,
        "content": ""
      }
    ]
  ],
  "heads": [
    [
      "opus",
      {
        "settings": [],
        "simulator": "SpiceOpus",
        "params": [],
        "options": [],
        "moddefs": [
          [
            "def",
            "bjtamp.inc",
            ""
          ]
        ]
      }
    ]
  ],
  "info": {
    "version": "1.0",
    "description": "A simple transresistance amplifier with an NPN transistor"
  },
  "tasks": [
    [
      "nominal",
      {
        "corners": [
          [
            "nominal",
            {
              "params": [
                [
                  "vcc",
                  "12"
                ],
                [
                  "temperature",
                  "25"
                ]
              ],
              "modules": [],
              "heads": [
                [
                  "opus"
                ]
              ]
            }
          ]
        ],
        "output": {
          "simulatordebug": "0",
          "evaluatordebug": "0",
          "optimizerdebug": "0",
          "keepfiles": false,
          "aggregatordebug": "0",
          "saveallresults": false,
          "savewaveforms": "verification",
          "taskdebug": "1"
        },
        "designpar": [
          [
            "r1",
            "45e3",
            "5e3",
            "50e3"
          ],
          [
            "r2",
            "195e3",
            "20e3",
            "200e3"
          ]
        ],
        "requirements": [
          [
            true,
            "gain",
            "20e3",
            "",
            "1e3",
            ""
          ],
          [
            true,
            "nonlinearity",
            "",
            "80e-3",
            "10e-3",
            ""
          ]
        ],
        "description": "",
        "postprocessing": {
          "measures": [],
          "plots": []
        },
        "type": "cbd",
        "mpi": {
          "persistent": true,
          "mirror": true,
          "processors": "",
          "cosdebug": "0",
          "vmdebug": "0"
        },
        "settings": {
          "aggregatorsettings": [],
          "relevantcorners": true,
          "stopsatisfied": true,
          "evaluatorsettings": [],
          "method": "ParallelSADE",
          "optimizersettings": [],
          "failurepenalty": "1e6",
          "initialstep": "0.25",
          "maxiter": "",
          "stoptol": "1e-5",
          "forwardsolution": true,
          "tradeoffmultiplier": "0"
        }
      }
    ],
    [
      "corners",
      {
        "mpi": {
          "persistent": true,
          "mirror": true,
          "processors": "",
          "cosdebug": "0",
          "vmdebug": "0"
        },
        "corners": [
          [
            "nominal",
            {
              "params": [
                [
                  "vcc",
                  "12"
                ],
                [
                  "temperature",
                  "25"
                ]
              ],
              "modules": [],
              "heads": [
                [
                  "opus"
                ]
              ]
            }
          ],
          [
            "c1_tl_vl",
            {
              "params": [
                [
                  "vcc",
                  "10"
                ],
                [
                  "temperature",
                  "0"
                ]
              ],
              "modules": [],
              "heads": [
                [
                  "opus"
                ]
              ]
            }
          ],
          [
            "c2_tl_vh",
            {
              "params": [
                [
                  "vcc",
                  "14"
                ],
                [
                  "temperature",
                  "0"
                ]
              ],
              "modules": [],
              "heads": [
                [
                  "opus"
                ]
              ]
            }
          ],
          [
            "c3_th_vl",
            {
              "params": [
                [
                  "vcc",
                  "10"
                ],
                [
                  "temperature",
                  "100"
                ]
              ],
              "modules": [],
              "heads": [
                [
                  "opus"
                ]
              ]
            }
          ],
          [
            "c4_th_vh",
            {
              "params": [
                [
                  "vcc",
                  "14"
                ],
                [
                  "temperature",
                  "100"
                ]
              ],
              "modules": [],
              "heads": [
                [
                  "opus"
                ]
              ]
            }
          ]
        ],
        "output": {
          "simulatordebug": "0",
          "evaluatordebug": "0",
          "optimizerdebug": "0",
          "keepfiles": false,
          "aggregatordebug": "0",
          "saveallresults": false,
          "savewaveforms": "verification",
          "taskdebug": "1"
        },
        "requirements": [
          [
            true,
            "gain",
            "16.4e3",
            "",
            "1e3",
            ""
          ],
          [
            true,
            "nonlinearity",
            "",
            "80e-3",
            "10e-3",
            ""
          ]
        ],
        "description": "",
        "postprocessing": {
          "measures": [],
          "plots": []
        },
        "type": "cbd",
        "designpar": [
          [
            "r1",
            "45e3",
            "5e3",
            "50e3"
          ],
          [
            "r2",
            "195e3",
            "20e3",
            "200e3"
          ]
        ],
        "settings": {
          "aggregatorsettings": [],
          "relevantcorners": true,
          "stopsatisfied": true,
          "evaluatorsettings": [],
          "method": "ParallelSADE",
          "optimizersettings": [],
          "failurepenalty": "1e6",
          "initialstep": "0.25",
          "maxiter": "",
          "stoptol": "1e-5",
          "forwardsolution": true,
          "tradeoffmultiplier": "0"
        }
      }
    ]
  ],
  "measures": [
    [
      "gain",
      {
        "components": "",
        "vector": false,
        "analysis": "dc",
        "lower": "20e3",
        "upper": "",
        "depends": [],
        "expression": "# Get response\nx, y = scale(), v('out')\n\n# Construct line from first to last point, extract gain\ngain=(y[-1]-y[0])/(x[-1]-x[0])",
        "norm": "1e3"
      }
    ],
    [
      "nonlinearity",
      {
        "components": "",
        "vector": false,
        "analysis": "dc",
        "lower": "",
        "upper": "80e-3",
        "depends": [],
        "expression": "# Get response\nx, y = scale(), v('out')\n\n# Construct line from first to last point\nylin=y[0]+(x-x[0])*(y[-1]-y[0])/(x[-1]-x[0])\n\n# Maximal deviation from line\nnonlinearity=(np.abs(y-ylin)).max()",
        "norm": "10e-3"
      }
    ]
  ],
  "designpar": [
    [
      "r1",
      "45e3",
      "5e3",
      "50e3"
    ],
    [
      "r2",
      "195e3",
      "20e3",
      "200e3"
    ]
  ],
  "analyses": [
    [
      "dc",
      {
        "saves": [],
        "options": [],
        "head": "opus",
        "params": [],
        "modules": [
          [
            "def"
          ]
        ],
        "command": "dc(-100e-6, 100e-6, 'lin', 100, 'i1', 'dc')"
      }
    ]
  ],
  "statpar": [],
  "variables": []
}