by beelerm on Tue Nov 03, 2020 4:37 pm
I'm trying to optimize a design by making a parameter a GLOBAL VARIABLE. Simple example: in a 1D model of a conductor, I calculate total cost as the sum of power cost and material cost, both vary with the cross sectional area of the conductor, and the power (amps x voltage) is found during solution of the electrical conduction equation. I've declared the area as a global variable and give it an equation that sets the Laplacian (DEL2) of the cost function equal to zero. I figure this should find where the cost has a relative minimum. This doesn't seem that far from the control_steady sample problem for global variables, but it doesn't seem to work. Any suggestions?
 Attachments

 dumy1.pde
 Example script attached
 (1.09 KB) Downloaded 29 times