Page 1 of 1
ADJUST with VARIABLE
Posted: Mon 26 Jul 2021 00:46
by wtam
Dear Colleagues,
My question has two parts:
(1) How can we use a VARIABLE with a multiplicative coefficient?
(2) How can we use ADJUST to adjust a VARIABLE such that the optimization result also apply in other places where the same VARIABLE is used?
Here is an example:
DRIFT 0 100
VARIABLE aa 10
ADJUST 11 1
DRIFT aa 10
DRIFT 10 10
DRIFT aa*2 10
DIAG_SIZE 11 2
DRIFT 10 10
END
I am hoping the ADJUST command will also consider "DRIFT aa*2 10".
Best regards,
Wai-Ming
Re: ADJUST with VARIABLE
Posted: Wed 28 Jul 2021 15:37
by Didier
Dear Wai-Ming,
A new version of TraceWin is available allowing the use of mathematical expressions with variables, like your first request. For the second one concerning the application of the ADJUST command to VARIABLE, unfortunately this is not possible and no simple future development would allow to get this functionality.
(See VARIABLE command documentation)
Regards,
Didier
Re: ADJUST with VARIABLE
Posted: Sat 4 Sep 2021 20:12
by wtam
Dear Didier,
Regarding my second request, is there a way to "tie" several similar elements together into a "cluster" such that the cluster would use one parameter so that matching would optimize that parameter? It is a workaround that I could think of. Do you have other ideas? Thanks.
Best regards,
Wai-Ming
Re: ADJUST with VARIABLE
Posted: Mon 6 Sep 2021 08:52
by Didier
Dear Wai-Ming,
To tell the truth, I didn't really understand your proposal and as it stands I don't have a solution to propose
Regards,
Didier
Re: ADJUST with VARIABLE
Posted: Mon 6 Sep 2021 19:41
by wtam
Dear Didier,
My proposal is described in my other post "NCELLS". Can we treat the following as one element:
DRIFT 20 20
GAP V1 20 20 0
DRIFT 20 20
GAP V1 20 20 0
DRIFT 20 20
such that in a matching "V1" can be solved for in both GAP elements. I thought NCELLS could be a workaround for what I needed if I can define arbitrary length for each cell. Apparently you told me it is not the spirit of NCELLS.
Best regards,
Wai-Ming
Re: ADJUST with VARIABLE
Posted: Tue 7 Sep 2021 10:04
by Didier
Dear wtam,
I think I have already answered this question in another post
Regards,
Didier