Add Operand
zemax_add_operandAdds an optimization operand to the merit function in Zemax OpticStudio, specifying type, target, weight, and insertion position.
Instructions
Add an optimization operand to the merit function.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operandType": "<operandType>"
},
"name": "zemax_add_operand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| int1 | No | Integer parameter 1 | |
| int2 | No | Integer parameter 2 | |
| data1 | No | Data parameter 1 | |
| data2 | No | Data parameter 2 | |
| data3 | No | Data parameter 3 | |
| data4 | No | Data parameter 4 | |
| data5 | No | Data parameter 5 | |
| data6 | No | Data parameter 6 | |
| target | No | Target value | |
| weight | No | Weight | |
| insertAt | No | Row; 0 appends | |
| operandType | Yes | Operand mnemonic such as EFFL, MTFT, or RSCE |