Community Tip - You can change your system assigned username to something more personal in your community settings. X
Hi Helpers,
The attached Mathcad Worksheet computes correct results. It might appear long/complex. However, the questions relate to the simple input of two variables at the very top of the worksheet and the simple 3-line Given-Minimize Block at the end of the program.
At the top of the program, the D and t arrays are parameterized with parameter OD1, OD2, and WT1, WT2, respectively. Specific values of these parameters to minimize the function “weight” are sought in the Given-Minimize block at the end of the program.
Here are the questions:
Notes:
Thank you for your interest, review and comments.
Gery
Gery Fryns написал(а):
Here are the questions:
- All parameters (i.e., OD1,…,WT2) must be provided explicitly in the minimize function of the Given-Minimize block. Array of parameters are not allowed. Could you please confirm and comment?
Thank you for your interest, review and comments.
Gery
We can use a vector as an argument of the Minimize function
Wee please
1) Yes, array parameters are allowed
2) Yes, the parameters to be optimized must in every sub-function, and they must be arguments to those functions.
3: Just do this:
All three questions answered in less than 24 hours. Worksheet updated and working.
First time on the forum and very impressed. I should have taken advantage of the forum way back then!
Thank you to both Valery and Richard for your instrumental help.
Gery
Could you please mark whichever answer you thought was the most helpful as correct. It will help others find the answer in the future.