HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

How to write FORTRAN executable statements in Optimization?

2009-03-11View Original

Thread Content

As the title suggests: I need to define an objective function, for example: PROFIT=DW*0.528+BW*0.264-FW*0.264-QR*4.7e-9. The value of PROFIT has been entered under Objective&Constraints, while variables such as DW, BW, FW, and QR have been defined in the Define section. How to enter this function in Fortran so that it becomes an executable statement? I followed the instructions in the small text at the bottom of the Fortran window and dragged and dropped parameters such as DW one by one, but still couldn’t complete it. Any seniors who know how to do this could please let me know! Thank you!
Reply #22009-03-11
Typed by mistake. The above text “PROFIT has been entered in Objective&Constrant” should read: PROFIT has been entered in objective&constrant
Reply #32009-03-11
Once it’s defined, you can just use your formula directly; it seems you need to start writing from column 7.

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.