Optimizing a Parameter

General discussions about how to formulate a script for FlexPDE.

Optimizing a Parameter

Postby 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
beelerm
 
Posts: 2
Joined: Tue Nov 03, 2020 1:50 pm

Re: Optimizing a Parameter

Postby beelerm on Tue Nov 03, 2020 7:53 pm

I may have just answered my own question. Looks like I should upgrade from v6 to v7 and try the minimize feature.
beelerm
 
Posts: 2
Joined: Tue Nov 03, 2020 1:50 pm

Re: Optimizing a Parameter

Postby moderator on Wed Nov 04, 2020 1:22 pm

That would certainly be the most straight forward way of running an optimization problem, although it should be able to be done in version 6, just not as directly.

In the version 7 samples we have an analogous example to "Control_Steady.pde" that uses the new optimization feature instead. "Samples | Usage | Optimization | Power_Control.pde" : https://www.pdesolutions.com/help/index ... ntrol.html .

If you would like to try the optimization in version 7, you can request a free 30-day trial license at https://www.pdesolutions.com/license.html.
moderator
 
Posts: 866
Joined: Tue Jan 11, 2011 1:45 pm


Return to FlexPDE Discussion

Who is online

Users browsing this forum: No registered users and 4 guests