Skip to main content
12-Amethyst
September 6, 2017
Solved

Using Minimize in a program

  • September 6, 2017
  • 2 replies
  • 2936 views

Hi everyone,

I would like to be able to use the Minimize built-in function in a program. 

I am obviously making something wrong (see attached example).

I understand that (even if one does not need to write it explicitly) there is a "solve block" involved.

Is it possible to use a solve block in a program?

thanks a lot for any hints.

Best regards

Claudio

 

PS: I do not succeed to attach the file, it says "the content of the attachment doesn't match its file type"

it is a normal xmcd file 😞 !! please help!Minimize.JPG

Best answer by LucMeekes

(Not being able to) attach files is known problem in the current forum sofware.

To attach, first put your mathcad file in an archive, e.g. in windows explorer, with your mouse over the file and  pressing the right mouse button choose "send to"=> "Compressed (zipped) folder" from the pop-up menu.

You should be able to attach the resulting .ZIP file.

 

You cannot use a solve-block inside a program, but you can assign the result of a solve block to a function.

See here for some examples:https://community.ptc.com/t5/PTC-Mathcad-Questions/Successive-solve-blocks/m-p/477785

 

 

Success1

Luc

 

2 replies

LucMeekes23-Emerald IVAnswer
23-Emerald IV
September 6, 2017

(Not being able to) attach files is known problem in the current forum sofware.

To attach, first put your mathcad file in an archive, e.g. in windows explorer, with your mouse over the file and  pressing the right mouse button choose "send to"=> "Compressed (zipped) folder" from the pop-up menu.

You should be able to attach the resulting .ZIP file.

 

You cannot use a solve-block inside a program, but you can assign the result of a solve block to a function.

See here for some examples:https://community.ptc.com/t5/PTC-Mathcad-Questions/Successive-solve-blocks/m-p/477785

 

 

Success1

Luc

 

12-Amethyst
September 6, 2017

Thanks, Luc, for both. 

Regards

Claudi

23-Emerald I
September 6, 2017

You can create a function that calls Minimize, then use that function in a program.

 

See attached.

12-Amethyst
September 6, 2017

Yes... I was just testing that after the first answer, and of course it works ... thanks a lot Fred!

Regards

Claudio