Skip to content

Optimisation example code? #72

Closed Answered by crnh
hmartinsson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hmartinsson,

Good to hear that you find ZOSPy useful! Currently ZOSPy does not offer its own interface for optimizations, so you need to use the ZOS-API interface for that. I agree that this interface is not very straightforward to use. We are therefore working on an optimization submodule for ZOSPy. Until then, we will not include example code for optimizations, as that example code will (hopefully) be obsolete soon.

Here is some example code for optimizations:

import zospy as zp

zos = zp.ZOS()
oss = zos.connect()

# Show the MFE
oss.MFE.ShowEditor()

# Clear current operands
oss.MFE.DeleteAllRows()

# Get operand 1 as it is initialized as a blank operand
operand_1 = oss.MFE.GetOper…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by crnh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants