{
  "format": "industrial-cad-design",
  "schema_version": 1,
  "source_project": {
    "format": "industrial-cad-project",
    "project": {
      "analysis": {
        "end_s": 3.0,
        "gravity_world_m_s2": {
          "x": 0.0,
          "y": -10.0
        },
        "start_s": 2.0,
        "step_s": 0.25
      },
      "bodies": [
        {
          "com_local_m": {
            "x": 0.0,
            "y": 0.0
          },
          "id": "ground",
          "inertia_kg_m2": 0.0,
          "initial_angle_rad": 0.0,
          "initial_position_m": {
            "x": 0.0,
            "y": 0.0
          },
          "mass_kg": 0.0,
          "name": "Ground",
          "points": [
            {
              "id": "fixed-pin",
              "position_m": {
                "x": 0.0,
                "y": 0.0
              }
            }
          ]
        },
        {
          "com_local_m": {
            "x": 0.25,
            "y": 0.0
          },
          "id": "rod",
          "inertia_kg_m2": 0.05,
          "initial_angle_rad": 0.0,
          "initial_position_m": {
            "x": 0.0,
            "y": 0.0
          },
          "mass_kg": 2.0,
          "name": "Massive rod",
          "points": [
            {
              "id": "moving-pin",
              "position_m": {
                "x": 0.0,
                "y": 0.0
              }
            },
            {
              "id": "tip",
              "position_m": {
                "x": 0.4,
                "y": 0.0
              }
            }
          ]
        }
      ],
      "curved_guides": [],
      "curves": [],
      "drives": [
        {
          "axis_local_a": {
            "x": 1.0,
            "y": 0.0
          },
          "body_a": "",
          "body_b": "",
          "id": "input",
          "initial_value": 0.0,
          "joint_id": "pin",
          "kind": "revolute",
          "law": "constant_velocity",
          "motion": {
            "out_of_range": "error",
            "segments": [],
            "timebase": "analysis_elapsed_s"
          },
          "point_a": "",
          "point_b": "",
          "rate": 1.5707963267948966,
          "reference_length_m": 0.0,
          "target": "joint"
        }
      ],
      "expressions": [],
      "force_elements": [],
      "graphics": [],
      "id": "design-constrained",
      "joints": [
        {
          "axis_local_a": {
            "x": 1.0,
            "y": 0.0
          },
          "body_a": "ground",
          "body_b": "rod",
          "id": "pin",
          "kind": "revolute",
          "point_a": "fixed-pin",
          "point_b": "moving-pin",
          "reference_angle_rad": 0.0
        }
      ],
      "loads": [],
      "name": "Independent search reference: constrained",
      "plots": [],
      "sensors": [
        {
          "body_a": "",
          "body_b": "rod",
          "body_c": "",
          "component": "x",
          "frame": "world",
          "id": "tip-x",
          "kind": "point_position",
          "object_id": "",
          "point_a": "",
          "point_b": "tip",
          "point_c": "",
          "radius_a_m": 0.0,
          "radius_b_m": 0.0,
          "wrapped_angle": false
        },
        {
          "body_a": "",
          "body_b": "rod",
          "body_c": "",
          "component": "y",
          "frame": "world",
          "id": "tip-y",
          "kind": "point_position",
          "object_id": "",
          "point_a": "",
          "point_b": "tip",
          "point_c": "",
          "radius_a_m": 0.0,
          "radius_b_m": 0.0,
          "wrapped_angle": false
        },
        {
          "body_a": "",
          "body_b": "",
          "body_c": "",
          "component": "x",
          "frame": "world",
          "id": "input-torque",
          "kind": "drive_effort",
          "object_id": "input",
          "point_a": "",
          "point_b": "",
          "point_c": "",
          "radius_a_m": 0.0,
          "radius_b_m": 0.0,
          "wrapped_angle": false
        }
      ],
      "supports": [
        {
          "body_id": "ground",
          "id": "fixed",
          "kind": "fixed"
        }
      ],
      "traces": [],
      "transmissions": []
    },
    "schema_version": 7,
    "units": "SI"
  },
  "variables": [
    {
      "id": "tip-length",
      "object_id": "tip",
      "parameter": "position_m.x",
      "lower": 0.4,
      "upper": 1.4,
      "scale": 1.0
    }
  ],
  "objectives": [
    {
      "id": "path-error",
      "kind": "timed_path",
      "quantity": "",
      "body_id": "rod",
      "point_id": "tip",
      "formula": "",
      "path": [
        {
          "time_s": 2.0,
          "position_m": [
            1.2,
            0.0
          ]
        },
        {
          "time_s": 2.25,
          "position_m": [
            1.1086554390135441,
            0.4592201188381077
          ]
        },
        {
          "time_s": 2.5,
          "position_m": [
            0.848528137423857,
            0.848528137423857
          ]
        },
        {
          "time_s": 2.75,
          "position_m": [
            0.45922011883810776,
            1.1086554390135441
          ]
        },
        {
          "time_s": 3.0,
          "position_m": [
            7.347880794884119E-17,
            1.2
          ]
        }
      ],
      "curve": [],
      "scale": 1.0,
      "weight": 1.0
    }
  ],
  "constraints": [
    {
      "id": "tip-x-limit",
      "quantity": "tip-x",
      "lower": -2.0,
      "upper": 0.8,
      "scale": 1.0,
      "tolerance": 1E-08
    }
  ],
  "analysis_options": {
    "position_tolerance_m": 1E-11,
    "angle_tolerance_rad": 1E-11,
    "max_position_iterations": 100,
    "maximum_continuation_step_s": 0.05,
    "singularity_tolerance": 1E-10
  },
  "force_options": {
    "force_absolute_tolerance_n": 1E-08,
    "torque_absolute_tolerance_nm": 1E-08,
    "power_absolute_tolerance_w": 1E-07,
    "relative_tolerance": 1E-09
  },
  "refinement_levels": 1,
  "sampling_tolerance": 1E-05,
  "values": [
    0.4
  ],
  "search": {
    "method": "cobyla",
    "seed": 42,
    "max_evaluations": 100,
    "global_evaluations": 35,
    "max_seconds": 30.0,
    "parameter_tolerance": 1E-06,
    "objective_tolerance": 1E-10,
    "target_score": 1E-10,
    "population": 12,
    "keep_candidates": 3,
    "difference_step": 0.0001,
    "derivative_tolerance": 0.001,
    "verification_refinements": 1
  }
}
