Welcome to the TRNSYS Users Forum.

The forum is a place where people can interact and have discussions about different topics involving the use of the TRNSYS software package. Here you can post topics for discussion or questions on using TRNSYS and get advice from other users or TRNSYS experts. This forum is not intended for detailed technical support. Users should contact their distributor’s hotline for such assistance.

Some tips for success on using the forum:

  • Follow the Forum Rules posted in Forum Administration.
  • There are categories for different types of topics and questions. Post your topic or question into the proper category.
  • Before posting a topic or question search the existing topics  (and the TRNSYS Users listserv archive or Post archive) to see if a similar topic or question has already been answered.
  • Use a descriptive topic name. Don’t use attention getting subjects, they don’t get attention and only annoy people.
  • State the version of TRNSYS and which add-ons your are using.
  • Include enough specific details for your topic of question to be answered. Just posting “Why am I getting an error?” without describing the specific error and what you are trying to do when you get the error will not receive a response that fixes your issue.
  • Remember when people help you, they are doing you a favor. Be patient, help people out by posting good descriptions of what you need help with, and be polite even if a response does not solve your issue.
  • Moderators may edit your post for clarity or move your topic to a more appropriate category.

Notifications
Clear all

Optimization

1 Posts
2 Users
0 Reactions
119 Views
0
Topic starter

Hi

I have a question related to the optimization process in my project.

My project's challenge involves minimizing the Operation Cost (OC), which is mapped in a matrix where OC depends on three variables (V, C, B). I’ve used the interpolation component (Type 581) to interpolate OC for any input values (Type 14), and the interpolation itself works correctly.

However, when I attempt to use the TRNOPT component for optimization, I receive an error (simulation program did not return an error stream). The TRNOPT component works fine with other examples (like a solar collector), so the issue seems specific to the interpolation component (Type 581)

I would be very grateful for any advice you could provide to help resolve this issue.

1 Answer
0

@mtajikjamalabad

There are a few possibilities. The first thing I would suggest is making sure you have used complete filepaths (e.g. C:\\TRNSYS18\MyProjects\Project1\datafile.dat') and not relative filepaths (e.g. 'datafile.dat') for the Type 581 data file and any other data files in your project. GenOpt copies files to new locations as part of its processing, and in doing so the relative filepaths become invalid. See this forum post: TRNOpt - error reading external data files

If that doesn't solve the problem, you can also try checking your TRNOpt settings, your version of GenOpt, and/or the installation directory of TRNOpt and/or GenOpt. See David's further suggestions in the comments on this post: TRNOpt - the program could not find all the files

Finally, if GenOpt was able to launch at least one TRNSYS simulation, you can check the .lst file of the simulation(s) for more information about the failure. The TRNSYS files associated with each run GenOpt starts are saved in .\Trnsys18\Optimization\GenOpt\Simulation\tmp-genopt-run-X (the naming convention may vary slightly with your version). (Scroll to the bottom of the .lst file to read the error message that killed the simulation).

 

Share: