question
stringlengths
19
6.88k
answer
stringlengths
38
33.3k
Problem Statement: When using the Human Interface (HIF) GCS displays, the HIFPOINT display does not populate with tag data no matter what domain is selected for display.
Solution: In PointListScr2Def, change 10 FIELD_FORMAT_RECORD from YES/NO to NO/YES For each record defined by PointListScr2Def (PointListScr_1, PointListScr_2, etc), change HIF_ALWAYS_USE from NO to YES. These changes will make the navigation buttons call up the USE and DIS buttons, which should work. Next, need to add this Exit Tag move to the display, POPUP: From: I1 To: PointListScr2_00 HIF_DISPLAY_USE/DIS This will allow choosing the down arrow button in the HIFPOINT display that brings up POPUP. From POPUP, you choose which domain you want and then click OK. The exit tag move adds the "use" and "dis" buttons. The display should be fully functional now. KeyWords Keywords: None References: None
Problem Statement: What is the purpose of table RATIO and what are common applications to use it?
Solution: Table RATIO, under the Miscellaneous branch of the tree, is used to force ratios between two or more variables or columns in the model. To use this table to must know the full matrix name of the variables that you want to ratio. For example, let's say that you want to ratio the purchase of crude ANS to ARL, so that you buy 4 units of ANS for every unit of ARL, i.e. the ratio is 4 to 1 (which is the same as saying from the 5 units of the mixture ANS plus ARL, 4 units will be ANS and 1 unit will be ARL). In this case, you need to write the following in table RATIO: The purchases of ANS and ARL is represented by variables PURCANS and PURCARL. The name of the ratio, RT1, can be any three character tag. Do not use existing three-character tags as ratio names if possible. If you want to ratio three or more variables to the total activity (sum of the three variables), just enter the actual composition values as the ratio values. The example below shows how to ratio the purchases of ANS, ARL and NSF to be 60%, 20% and 20% respectively of the total purchase of the three crudes. If the total purchased amount of this group of crudes is 50,000 bbl, the resulting purchases would be 30,000 bbl of ANS and 10,000 bbl of ARL and NSF. Notes: 1. Make sure that there are no conflicting constraints on the involved variables already (like forcing the MIN of ANS to 50,000 bbl and the MAX of ARL to 5,000 bbl in table BUY), as this can lead to infeasibilities. 2. You can ratio any model variables, (Purchase, Sales, Submodel vectors, Blending vectors, etc.) 3. For an example on how to use table RATIO to fix the crude slate composition leaving total feed amount free, please see solution 121766. Keywords: Table RATIO References: None
Problem Statement: You need to create a new domain, area, units for PMCAnalogDef and/or PMCDiscreteDef records. What order are they created?
Solution: The order is folder/subfolder -> unit -> area -> domain. In this example, need a new domain called Glycol, an area called Power, a units record called Power Unit, a unit called Glycol, a folder called Power and a subfolder called Glycol. What order does this need to be created in? The folders are created first. In this case, create a Folder record called Power and create a subfolder beneath that called Glycol Next, create a new record defined by UnitsDef. In this case, call it PowerUnit. In this record, add an occurrence and choose: Glycol for SELECT_DESCRIPTION and Glycol folder for UNIT FOLDER. Go to a record called Plant-Systems and add an occurrence. For SELECT_DESCRIPTION, add Power and for UNITS RECORD, choose PowerUnit from the dropdown list. This will later be used to populate the Area. Create new record defined by DomainDef called GlycolDom. Go to Domains record, defined by DomainsDef and add an occurrence. For SELECT_DESCRIPTION, use Glycol. Choose GlycolDom for Domain Record from the drop down list. Chose Power for Area from the dropdown list. UnitsRecord and Unit populated with PowerUnit and Glycol. Go back to the GlycolDom record and point the DOMAIN field to Glycol from the drop down list. KeyWords Keywords: None References: None
Problem Statement: Some models have many crudes available for evaluation at a single time, but only a limited number of them can be selected based on plant limitations, e.g. the number of available tanks. For example, out of 50 possible crudes, tankage constraints limit the total number selected to 6. However, Aspen PIMS may choose to run 15 crudes, a solution that does not take into account the tankage restriction. How do you limit the number of selected crudes?
Solution: This is a problem that can be solved with Mixed Integer Programming (MIP), as it involves variables (Crude Purchases) that can either run at any value or must be turned off. Attached is a sample model showing the necessary changes to limit the number of crudes, in this case for a subset of the available Crudes, consisting of ANS, NSF and AHV. The changes are in table MIP and ROWS, both under the Mischellaneous branch of the tree. In table MIP you have to define the Binary (or bivalent) Variables YPRCANS, YPRCNSF, YPRCAHV. This variables can only take values of 0 or 1 (on-off variables). These variables are User Defined, i.e. created for this purpose. In table ROWS, Purchase activity of each particular crude is captured from variable PURCXYZ (XYZ is the name of the crude), and the following constraints are written. The structure of LPRCANS, LPRCNSF, and LPRCAHV is known as the BigNum (Big Number) formulation. These constraints turn the binary variables on or off. Each of these constraints is less than or equal to zero. For example, let's consider LPRCANS: it says that the Purchase of ANS is lower than 100*YPRCANS. Because this variable (YPRCANS) can be either 0 or 1, the Purchase of ANS can be either <=100 or <= 0. The number 100 (the Big Number) corresponds to the maximum Crude Tower capacity. The Big Number should be about the same as the maximum Crude Tower capacity, i.e. if the maximum crude tower capacity is 95, then 100 is a good value for the Big Number. 1000, however, might be too large, for numerical reasons. For your model, you should choose a Big Number using a similar criteria. Depending on the value that the Binary Variable takes (i.e. 0 or 1), the corresponding Crude Purchase is being turned on or off. The way we impose a maximum on the number of crudes is by the constraint: The ETOTCRD equation defines that the sum of the three Binary or Flag variables has to be equal to variable UTOTCRD. This variable is then limited by the capacity CCAPTCR. By using a Capacity, we can control the Maximum in an easy way through table CAPS, as shown below: For each crude for which you want to apply the constraint you have to create one binary variable and one L-Row, and include each binary variable in the ETOTCRD row. Below is the Purchases Report from a solution when there is no restriction on the Maximum number of crudes. To relax the constraint, all you have to do is write 3 under column MAX for Capacity CTCR in Table CAPS. In this case, all of the three crudes, ANS, NSF and AHV have some activity. The Purchases Report below is from a solution where the Maximum number of crudes is set to 1 in table ROWS. In this case, only ANS has activity, because only one of the three can have some activity. A comparison of the OBJFN in both cases shows a reduction for the more constrained case, as expected. OBJFN for relaxed model: 671.92 OBJFN for constrained model: 644.14 This constraint has an effect of 4.2% reduction in the OBJFN. This structure was tested in a model with about 30 crudes to select only 6; it achieved a solution without a problem and the performance in terms of convergence and time had only minor changes. A similar type of crude selection strategy can be implemented in a more automated way by using the Feedstock Basket Reduction functionality available in the PIMS Advanced Optimization module (PIMS-AO). Keywords: MIP Mixed Integer Programming Feedstock Basket Reduction References: None
Problem Statement: It is common to define volume based capacities (i.e. flow restrictions) in weight based model. For this purpose, mass to volume conversions need to be defined in the model. What is the required structure for these conversions and to set up these capacities?
Solution: Let's assume that we want to control the sum of two naphta feeds (MN1 and DCN) to the Naphta Hydrotreater. The required mass to volume conversion calculation is shown below: The bbl/m^3 conversion factor is 1/0.1587, and 1/SPG is SPV (specific volume). Therefore the equation becomes: Reordering it so that we get an equation equal to zero (an E-row in terms of PIMS nomenclature) we get: This is represented as row ESPVNHT in the structure below. As the SPV changes during the optimization, we use -999 placeholders to pick up the updated property. The bbl/m^3 factor multiplies the Total Feed Volume variable (BPT) to allow the use of the -999 placeholders in the feed variables. The conversion factor is 1 if m^3 and tons are the volume and weight unit of measure. The capacity is then consumed under the auxiliary variable BPT which holds the total feed in volume. Keywords: Capacity Capacities Placeholder Mass to Volume conversion References: None
Problem Statement: Recently we installed Aspen PIMS Family version 2006.5 in our machines. We would like to know if Aspen Report Writer application was installed successfully. How do we add RW into Excel?
Solution: Because Aspen Report Writer is a Microsoft Excel Add-In, Microsoft Excel 2000 or XP must be installed on your computer. After you install Aspen Report Writer, use this task to select Aspen Report Writer as an Excel Add-In. Once Aspen Report Writer is selected as an add-in, the AspenRpt option appears on the Microsoft Excel menu bar. To select Aspen Report Writer as a Microsoft Excel Add-In: 1.- Once Aspen Report Writer is installed, Start Excel and click Tools | Add-Ins? to display the Add-Ins dialog box. Note: You must have at least one workbook open to access the Add-Ins dialog box. 2 Select the Aspen Report Writer option, and then click the OK button. Note: You only need to perform this task once. Excel remembers which Add-Ins you use between sessions. In addition, once you click the OK button, the AspenRpt menu option appears on the Excel menu bar. Keywords: Report Writer Microsoft Excel Excel Add-In References: None
Problem Statement: As the model data in Aspen PIMS is segregated in many different tables, it can be a challenge to identify all sources and dispositions in the material balance for a stream. What tools are available to track these sources and dispositions in an aggregated way?
Solution: There are three main tools that can help in this task: the Stream Data Assistant, the Stream Disposition Map and the Matrix Analyzer. 1) Stream Data Assistant This Data Assistant is located in the Aspen PIMS menu, under Model | Data Assistants | Capacities, Streams and Utilities, as shown below. You can view Capacities, Streams and Utilities. To track the material balances, select "Streams". When you select a stream on the left, it will show all tables where this stream tag appears, including property tables (e.g. BLNPROP), blending tables, etc. 2) Stream Disposition Map The Stream Disposition Map is a section of the Data Validation Report, which can be generated from the Run | Data Validation menu. It will list all the streams on the left, and the entries in the columns will identify the sources or destinations. The following columns are created: * P/S: Purchases or Sales, a "-" sign means a Purchase, a "+" sign means a Sale. * BLND: Blending, a "-" sign means the stream is a final blend, a "+" sign means the stream is a blend component. * SABC: Submodel SABC, a "-" sign means the stream is produced, a "+" sign means the stream is consumed, a "*" sign means the stream is produce and consumed in this submodel. * CHECK: Balance check, an entry in this column means that there are no sources or dispositions for this stream. 3) Matrix Analyzer The Matrix Analyzer shows the optimization matrix structure by rows or columns. The material balances are rows (VBALxyz or WBALxyz, for either volume or weight based balances). The whole material balance is shown here in one place. However, to be able to use this tool, you must be familiar with the naming conventions of the rows and columns in Aspen PIMS; you can find a description in the Help file, under the section "Matrix Row and Column Naming Conventions". For example, in the VBALLN1 selected above, four variables (i.e. four sources or dispositions) are part of the material balance for LN1: the negative coefficient in column SNPSLN1 means LN1 is being produced in submodel SNPS, under column LN1; the positive coefficients in columns BLN1LRG, BLN1URG, BLN1UPR indicate that LN1 is a blending component to blends LRG, URG and UPR. Comparison of the methods Advantages Disadvantages Stream Data Assistant Shows sources and dispositions of streams and also other tables where the stream tag appears (e.g. properties tables) It is possible to get confused about which tables actually represent entries for the material balance and which are not related to the material balance Stream Disposition Report Shows all sources and dispositions for the material balance of a stream, summarized by submodel, blending, purchases and sales Does not identify the specific columns in which a stream is consumed or produced in a submodel or to which blend it goes as a component Matrix Analyzer Shows in detail all sources and dispositions for the material balance of a stream. Identifies the specific columns in which a stream is consumed or produced in a submodel or to which blend it goes as a component You need to be familiarized with the rows and column naming convention and with the equations in the matrix Keywords: Stream Data Assistant Stream Disposition Report Matrix Analyzer Material Balance Source Disposition References: None
Problem Statement: In version 2006.5 of Aspen Refinery Multi-Blend Optimizer (MBO), it was possible to create recurring events that go off the schedule horizon way into the future. Now in v7.3 it not only does not create events into the future, it cuts them off at the end of the schedule.
Solution: This behavior is by design. In general MBO does not deal with events that are outside of the model horizon. When a user creates recurring events, typically existing events will be deleted and then new events will be created. Aspen Petroleum Scheduler does not read events outside of the model horizon, so the events past the end date will not be deleted and overlapping events will result. The current design avoids duplicated events. Keywords: -Recurring Events References: None
Problem Statement: How do I define or create a new splitter in Aspen Refinery Multi-Blend Optimizer (MBO)?
Solution: Here are the steps to follow up to add a new Splitter in MBO: 1. Select from the Menu => MODEL|SPLITTERS, then the following dialog box will pop up: 2. Click “New” button, you will see below screen – it does list all the splitters existed in ATOrionUnitsDef table (Aspen Petroleum Scheduler) 3. However, if you type the new splitter ID that you would like to create into the field “Prefix”, you will see below 4. Click OK, you can then define the feed stream, and select the products run down component streams (need to be defined in advance – for instance AAA) from the component list, and click OK After you have saved the model, you will find this splitter shows in both the table ATORIONUnitsDef and BLEND_SPLITTERS Keywords: Rundown Blending, Splitters References: None
Problem Statement: On the “Blend Details” in the package of Optimization reports, I see that some of the cells appear to be color-highlighted, evidently indicating that the optimizer has modified the values. However, I cannot find a legend explaining what the colors mean.
Solution: "Blend Details" dialog box displays a summary of the Blend data for all the Blends in the current model. This dialog box is read only. From the Event interface, click Events | Blend details, this option will be available after optimize MBO Bl end Detail The background color applied to a value indicates the following: Keywords: -Blend reports -Dialog boxes References: None
Problem Statement: What exactly happens "behind the scenes" when I click the "Optimize" button? Clearly, it produces a package of reports, but is there also some data update happening?
Solution: When a user clicks the “Optimize” option in Aspen Refinery Multi-Blend Optimizer (MBO), MBO optimizes the blend schedule over the scheduling horizon. Also the shipment volumes and product receipt volumes will be optimized and the optimizer maximizes the objective function. Blend composition (recipes) and event volumes are determined by optimizer. The decisions which the optimizer made are listed in blend detail and other events summary. Events are updated accordingly and if the user saves the model, then the event data will be saved. Keywords: -Blend Events -Optimizer References: None
Problem Statement: Is there a way to "hide" Aspen Petroleum Schedular (APS) related events screens in MBO, when common model is shared by both the applications?
Solution: Aspen Petroleum Schedular ( APS ) and Aspen Refinery Multi-Blend Optimizer (MBO) , both applications are sharing the common model. APS handles the whole Refinery scheduling and required many Events Screens to schedule the whole refinery operations whereas MBO designed for only Optimizing Blend events, which required less number of event screens. When Single model is shared by both the applications, there is a requirement for MBO users to hide , event screens which are not used in MBO like Crude Operation events and Processing Units Events etc…. There is a way in a Same model, that display all the event screens in APS, but only Blend Related Event screens in MBO. To achieve this requirements - Open Table GANTT_LIST and browse to a column Named “Blending” - In Blending Column, update “-1” , so that the specific event screen will be visible in both APS and MBO - Update with “0”, in case if this event screen should be visible only in APS and need to hide in MBO Screen shot for details: Keywords: hide screen hide Event Screen disable References: None
Problem Statement: AspenTech documentation does not contain description for some fields contained in Aspen Q definition records. A description of these fields is provided in this knowledge base article.
Solution: Q_Limit Basis: This is a field that depends on Q_Limit_Update_Trigger field, which is a user controllable field. The three specific subgroups of calculation involved here are: a. All limits User specified. This is equivalent to Absolute Calculation. b. Calculate Once. This is equivalent to a known MEAN Calculation. c. Re-calculate periodically. Equivalent to XBAR calculated. Q_Limit_Countdown: This field is used to determine how many subgroups are needed before the next limits are calculated. The field is only meaningful when Recalculate Periodically is chosen for Q_Limit_Update_Trigger field. Q_Cusum_Above and Q_Cusum_Below: These two fields are calculated by the Q program. They are the same as Q_Cusum_High and Q_Cusum_Low for the latest generated subgroup. Keywords: None References: None
Problem Statement: When launching the Lab Entry application, a user may see the following error: "There was a problem sending licensing information over your network. CAUSE: The reply from the server was garbled or tampered with"
Solution: This error occurs for one of two reasons: The Lab Entry client is configured to use a license file it cannot connect to. When first launched, Lab Entry will attempt to locate the QESGROUP.LIC file in the path indicated by the QES_LICENSE_PATH environment varaible. If this variable is pointing to an invalid network path, or a path that does not contain the license file, the above mentioned error will occur. The way to verify this is to go to C:\autoexec.bat, right-click on the file and select edit. There will be a command that sets the QES_LICENSE_PATH in the file. For example: Set QES_LICENSE_PATH= C:\Program Files\Lab21\QESGROUP.LIC Verify that the license file exists in the listed path, and that the path is accessible from the Lab Entry machine reporting the problem. The CryptKey service, which processes Lab.21 licensing requests, has encountered an error and must be re-registered. To resolve this, unzip the attached files to a directory on your hard drive and run the 103.bat file. It will delete and reinstall CrypKey License Service, and you will need to reboot your system. Lab Entry will be running on the evaluation license for 60 days after this point, so it will be important to submit a request for a new license (site key) from Aspentech Order Administration. This can be done by filling out the upgrade request form, including the computer's site code, from the support website: http://support.aspentech.com/webteamasp/My/FrameDef.asp?/webteamasp/UpgradeOrder/UpgradeForm.asp KeyWords Keywords: None References: None
Problem Statement: How do I get permanent license keys for Aspen Lab.21 clients?
Solution: The temporary client license is good for only 90 days. To receive a permanent license key, send a request to Aspen Tech Support. The request must include the site code. The site code can be found by pressing <Enter> at the Lab.21 startup screen. After pressing <Enter>, the license configuration window will appear. This window contains the site code. Once the site code is submitted to Aspen Tech Support, a permanent license key will be provided. This key should be entered at the appropriate prompt in the license configuration window. Keywords: license file key permanent References: None
Problem Statement: When trying to set a Q_XBARDef record to "Make Unusable", the error message appears: "Invalid value in field Q_TRIGGER_FIELD". Note that you will get a similar message for three other fields if you only fix them one at a time.
Solution: Before making a Q_XBARDef record to "Make Unusable", you need to modify these fields first: Q_TRIGGER_FIELD - set to blank Q_LIMITS_ON_DISK - set to OFF Q_SBGRPS_ON_DISK - set to OFF NUMBER OF DISK VALS - set to OFF You can then set it to "Make Unusable" and then "Delete". KeyWords: deleting Q records Keywords: None References: None
Problem Statement: Q Client Config Tool helps you to create new Q records from scratch. Q Configuration uses a wizard to lead you through the Q record creation process. The Q Configuration wizard takes you through several steps, one of which is called SPC Variable Identification; this is where record Name and description should be entered. The third field in the SPC Variable Identification dialog box is a pull-down list of plant areas. By default, only three plant areas are visible: Multi Area, Area1, and Area2, even though you may have many more areas configured in the PLANT-AREAS record. This may be puzzling to you especially if you want to select plant areas other than those mentioned above or add a new area to the list. Hence the following question: Where are the Plant Areas stored which appear in the pull-down menu in the SPC Variable Identification dialog box?
Solution: Plant Areas associated with Q records are stored in the Q_PLANT-AREAS record and that's where additional plant areas for the Q records can be configured. Typically, customers will remove the 3 default values mentioned above, and add their own plant areas that pertain to their plant configuration. KeyWords: Keywords: None References: None
Problem Statement: When connecting to an Aspen InfoPlus.21 database from Microsoft Access using the Aspen SQLplus ODBC driver, a query for history data returns many duplicate values/timestamps. For example:
Solution: To prevent the duplicated results the Distinct key word must be used in the select statement. An example query is shown below. SELECT distinct name, ip_trend_value, ip_trend_time FROM IP_AnalogDef_1 where name = 'atctic301' and ip_trend_time > '25-jan-07 15:20:00'; Keywords: Multiple several values selectdistinct References: None
Problem Statement: When using a lab entry client, certain errors may occur and be displayed on the client screen. Until these errors are acknowledged, further action is prohibited. This presents a problem, if the entry is accessing a table in the Lab.21 database by the use of stored procedures. Possible table or record locking could occur until the error is acknowledged, and if the lab entry screen is left unattended with this error, no other entries or store procedures can be executed against that same table or record.
Solution: This problem, and all the fallout it creates, can be forestalled by using the client workstation option "Show SPErrors". This is in the [Options] section of the lab21.INI file, so it is set on a workstation basis (ie each client is set individually). If the entry ShowSPErrors=No is included in that section, then Lab.21 will not pause to display any errors generated by stored procedures, and that in turn will mean that the record or table is not locked, so the resulting problems will not occur. The LabEntry.Log file may be checked to see if any real errors still occur with a stored procedure. KeyWords: blocking SQL Server Oracle Keywords: None References: None
Problem Statement: Questions have arisen regarding how dates are stored in the Lab.21 database (either SQL Server or Oracle). The relational database stores the date as a decimal number. When viewing date fields within Lab.21''s lab entry screens, they will be displayed in a date format. However, if a user attempts to query the Lab.21 database outside of the lab entry screens (perhaps through a custom application), a decimal number may be returned. The following solution describes how to convert that number into a meaningful date.
Solution: Date/time values are stored in Lab.21''s database in Visual Basic format, which is the number of days since 30-Dec-1899, and the decimal fraction of a day. For example, in that format, 12 Noon on August 3, 2000 would be day 36742.500. Using Visual Basic (and by extension, VBA in Excel), dates can be displayed using the format function, for example Format(36742.500, "dd-mmm-yyyy hh:nn") would print as 03-Aug-2000 12:00. In Lab.21, if you use the Write to External Table feature, to output data from a date/time column to an external table, Lab.21 will sense the type of variable being written to. If it is a date/time variable in SQL Server, it will write the data in SQL Server date/time format. If it is a character string variable, the output will be character string. If it is a numeric variable, the output will be numeric (ie 36742.5 again). If the user wishes to output the value in date-time format directly from the Lab.21 tables using Crystal Reports, a formula field should be used, which is written as as Date(1899, 12, 30) + 36742.5 (where the 36742.5 is probably a variable, of course). The first date reference forces the output to be formatted as a date. KeyWords: Keywords: None References: None
Problem Statement: How to read values from the Repeat Area of an Aspen InfoPlus.21 database record using Microsoft Access.
Solution: For Microsoft Office v2003: Connect to Aspen InfoPlus.21 is as follows: 1. Open Microsoft Access. 2. Open an existing database. 3. Select the Tables tab, then File | Get External Data | Link Tables. 4. Select ODBC Databases() from the Files of Type drop down menu. 5. Select the Machine Data Source tab. 6. From the available data sources select the Aspen InfoPlus.21 server desired. 7. Select the desired definition record and then click OK. Note: You will see definition record names like IP_AnalogDef, followed by IP_AnalogDef_1. The plain definition record name would be selected if you just want the fixed area fields. The key to getting repeat area fields is to select the _1 definition record. For definition records that have multiple repeat areas, each of the underscored definitions refers to a repeat area. For example, if a definition record had 3 repeat areas, you would see Definition_1, _2, _3. In the case of IP_AnalogDef, there is only one repeat area. 8. You will now see all the fields from the fixed area, but also, if you scroll to the bottom of the list of fields, you will see the repeat area fields. Click OK. 9. The Aspen InfoPlus.21 definition record will now be saved as a ?table? in the Microsoft Access database. 10. When you open this database ?table?, you will see the records that are defined for that definition record. Create a report: 1. Click on the reports tab in the database you opened. 2. Click on the NEW button. 3. Select Report wizard and click OK. 4. Choose the definition table you want from the Tables/Queries drop down menu. 5. Select the fields to be included in the report and click NEXT. 6. Choose any of the remaining report format options (group, sort, etc). 7. Choose a name for the report and click FINISH. 8. The report will then be saved and displayed. Note: Instructions on how to access the IP21 database can be found in the Desktop ODBC User's Manual in the Using Microsoft Access section. KeyWords: ODBC Access Definition record Keywords: None References: None
Problem Statement: When using Desktop ODBC to link to an InfoPlus.21 table (Definition Record) from MS Access, it isn''t possible to view the data if there is an "&" ampresand in the name of one of the table''s columns. For example, the IoGetDef record contains a column in its repeat area named, IO_VALUE_RECORD&FLD. For this reason, the table IoGetDef_1 (the repeat area of IoGetDef) isn''t able to be viewed when linked to from MS Access. This behavior has been documented in the v3.0 SQLplus User''s Manual as a new item in the section, "Notes on Accessing Remote Data". The following has been added: "SQLplus does not support the use of ampersands (&) in column or table names in Microsoft Access."
Solution: There are two ways this can be worked around: Create a Link to the IoGetDef_1 table - the entire table cannot be viewed by double clicking, but can be queried. Create an SQL query which selects data using the following syntax: Select IoGetDef_1."IO_VALUE_RECORD&&FLD" from IoGetDef_1; (other columns can be added as desired.) Before executing the query, select the Query pulldown menu and choose SQL Specific option. Then click on the Pass-Through option (the second option in the list) Execute the SQL query - you will be asked to choose the ODBC Data Source. The data will be returned successfully. Create an SQLplus VIEW which selects the desired information from InfoPlus.21 Create a Link Table from MS Access to the VIEW created in SQLplus. Query the VIEW as desired from Access. KeyWords: Keywords: None References: None
Problem Statement: How is Q_LIMITS_ON_DISK field in Q records used? The Q manual only says "This field controls the number of occurrences of control limits to be kept in a disk history file." It doesn't explain where the repeat area is nor what repository (disk history file) is used.
Solution: The Q_LIMITS_ON_DISK field in Q records is an ON/OFF field which controls whether the Q_LIMITS_IN_MEMORY repeat area is stored to disk in the TSK_DHIS repository. The use of this repository is hard-coded and cannot be changed. KeyWords q_limits_on_disk q_limits_in_memory q_record administrator Keywords: None References: None
Problem Statement: I need to add Q records to my database. Which .rld files contain Q records?
Solution: Load the following .RLD files : cimgcs.rld and newcimq21.rld, in that order. Procedure: 1. In the IP21 Administrator, right click on the name of your node. 2. Select "Load Records" from the drop down menu 3. In the Load Records dialog box, check the "Available in this system" radio button. 4. Locate the cimgcs.rld file (It is located at the following path: Program Files\Aspentech\Infoplus.21\db21\etc) 5. Select OK You should receive a Results list specifying that the records have been loaded. Repeat the same procedure with the newcimq21.rld file. KeyWords: Q rld Keywords: None References: None
Problem Statement: This Knowledge Base article shows how to programmatically update an Aspen Q record's free comment area.
Solution: The following query searches the Q_SBGRPS_IN_MEMORY repeat area for the timestamp associated with the subgroup you want to update with a comment. The query records dates in both records and comments in the Q_FreeCommDef record. -- The example Q record is Q_ATCAI -- The example Q_FreeCommDef record is q_free local subgroup_time timestamp; local freecomm_time timestamp; local comments CHAR(3); subgroup_time = '02-AUG-05 08:22:50.3'; freecomm_time = '02-AUG-05 08:22:22.2'; comments = 'example comments'; UPDATE Q_ATCAI.3 SET Q_FREE_COMM_TIME = freecomm_time where Q_SUBGROUP_TIME = subgroup_time; INSERT into q_free ("TREND TIME", Q_FREE_FORM_COMMENT) VALUES (freecomm_time, comments); NOTE: The code may require a WAIT statement on some slower systems. Keywords: None References: None
Problem Statement: Importing data into a Microsoft Access Table indicates a problem with the field "Message SW.", or any field which contains special characters, such as a period. This is a limitation of Microsoft Access and not a problem with Aspen SQLplus.
Solution: There are at least two work arounds: Use pass-through queries in Microsoft Access rather than linked or imported tables. In the Database window, the window that appears when you open an Access database or an Access project, it displays shortcuts for creating new database objects and opening existing objects. Click "Queries" under Objects, and then click New on the Database window toolbar. In the New Query dialog box, click Design View, and then click OK. Without adding tables or queries, click Close in the Show Table dialog box. On the Query menu, point to SQL Specific, and then click Pass-Through. On the toolbar, click Properties to display the query property sheet. In the query property sheet, set the ODBCConnectStr property to specify information on the database to which you want to connect. You can type the connection information, or click Build , and then enter information about the server you're connecting to. When you are prompted to save the password in the connection string, select Yes if you want the password and logon stored in the connection string information. If the query isn't the type that returns records, set the ReturnsRecords property to No. In the SQL Pass-Through Query window, type your pass-through query (pass-through query: An SQL-specific query you use to send commands directly to an ODBC database server. By using pass-through queries, you work directly with the tables on the server instead of having the Microsoft Jet database engine process the data.). For details on the syntax for your query, see the documentation for the SQL database server to which you're sending the query. To run the query, click Run on the toolbar. Create an SQLplus View that renames the columns and then link to the view from Access. The view can be created by running a query in SQLplus. This will create a record in InfoPlus.21/Setcim defined by ViewDef. i.e. The following would create a "view" called "newanalogdef"create view newanalogdef as select name, "plant area" as plant_area, value, "eng units" as eng_units, "message sw." as Message from analogdef All fields selected in the created view will be available for queries. Then query the view from Access: i.e. select name, plant_area, eng_units, message from newanalogdef KeyWords MESSAGE SW. Microsoft Access. Keywords: None References: None
Problem Statement: When writing dates to InfoPlus.21 through Lab.21 lab entry screens, the dates could be interpreted incorrectly if the formats for both the Lab.21 date/time column and the IP.21 timestamp format aren''t matching. The following solution describes how to synchronize both settings.
Solution: Lab.21 date/time formats control how a timestamp is sent to InfoPlus.21. It is important to match the Lab.21 column''s date format with the timestamp format of IP.21. To begin, first determine the timestamp format that is being used in InfoPlus.21. To determine this: Open the IP.21 Administrator and right-click on the Group you are using. Select the Properties option and then the Time Parameters tab. On this tab, select the desired time format. (NOTE: It may be easiest to chose a format which uses only numbers, if the string date a user might enter in a Lab.21 screen doesn''t match the string date formats available in InfoPlus.21. This usually only affects European customers who may use different date strings than IP.21 would expect. For example IP.21 may save timestamps as "13-OCT-2000", but a Swedish customer may enter a date of "13-OKT-2000". In this case, only numeric date formats should be used.) Next, the user should configure the IP21 TimeSetting in LAB.21 - The value of this entry is set according to the timestamp setting of the InfoPlus.21 system in which entered values are to be stored (as described above). This value may be a number from 0 to 5 in the Lab.21 system. Time formats stored in the InfoPlus.21 system are interpreted as follows: 0 dd/mm/yy hh:mm:ss 1 dd-mon-yy hh:mm:ss 2 mm/dd/yy hh:mm:ss 3 mon-dd-yy hh:mm:ss 4 yy/mm/dd hh:mm:ss 5 yy-mon-dd hh:mm:ss For example, if the user sets the IP.21 timestamp format to "dd/mm/yy hh:mm:ss" and then sets the Lab.21 column for the timestamp to a date/time format of 0, the date will be recorded properly. KeyWords: date conversions Keywords: None References: None
Problem Statement: Some modifications to the Lab.21 database structure were made in version 4.8. Updates to the Lab.21 database must be made before using 4.8 utilities against the database.
Solution: Run the attached scripts against the relational database to perform the updates. KeyWords: upgrade conversion Keywords: None References: None
Problem Statement: Unable to rename or delete tests.
Solution: : Keywords: None References: s to tests must be removed from all grades and data entry form columns in order to delete them. Once data has been entered against a test reference through the Lab Entry utility, the data resides in the TE_LAB_VALUES table on the relational database. These references must also be removed prior to deleting the test. KeyWords: Lab.21
Problem Statement: Some modifications to the Lab.21 database structure were made in version 4.8.2. Updates to the Lab.21 database must be performed before using 4.8.2 utilities against the database.
Solution: Run the attached scripts against the relational database to perform the updates. KeyWords: upgrade conversion UPD482_from_481OR.sql UPD482_from_481SS.sql Keywords: None References: None
Problem Statement: How do I save a Platinum flowsheet after customizing it?
Solution: Consider Platinum flowsheets as standalone feature. In V8.2, Platinum is started from within Aspen PIMS for Platinum Solo. The flowsheet that is opened does not have to be from the same model that is open in Aspen PIMS. Platinum can open any flowsheet. However for Case Runner, the Platinum flowsheet does associate with a PIMS model and its output database (Access or SQL). Once you configure the flowsheet, you can save the customized flowsheet by exporting to a zip file from File | Export Flowsheet, then select the flowsheet from the right side in the window. A message window will pop up to ask you if you want to save this flowsheet. Click ‘OK’ and another window will be opened to let you select the path and file name to save to. This procedure lets you save the flowsheet to any location you choose. But be careful, since the default name is the same as an archive of the PIMS model. It is best to change the name of one or other so you can tell them apart. When you want to restore this flowsheet, use the option ‘Import flowsheet’ in the above screen. In the window ‘Import Flowsheet’, use the browser to find the zip file you saved and confirm the import. Highlight the data source in the ‘Project data sources’ panel, then click the pencil icon on the right. You will see the details configuration. You can modify the linkage to the data source. Platinum knows the data source is changed and any case sets you defined in the flowsheet will be lost since the new database may have completely different cases. Keywords: None References: None
Problem Statement: How Aspen PIMS Platinum quickly, easily flags material out of balance errors and accurately identifies root cause of the errors (difficult with traditional Aspen PIMS)
Solution: Material out of balance message is a common warning message in Aspen PIMS that needs to be addressed. Material balance constraints are modeled as LE (Less than or equal to zero) constraints, however; when a material balance constraint R.H.S is not satisfied at zero value PIMS throws the message: "Material out of balance". Platinum can be used to effectively to trouble shoot this problem. The following is a material out of balance message As observed from the message PIMS just indicates which stream CCS (cat slurry) is out of balance. In order to trouble shoot this the traditional way, the disposition of this stream CCS will be tracked in the matrix analyzer As evident from the matrix analyzer the row activity sum for this material balance constraint is -1.00266, which obviously showed that the R.H.S of this constraint is not maintained at zero value. Close inspection also showed that the CCS activity for LSF (Low Sulfur Fuel Oil) blending is zero. This implies that PIMS did not want to blend any CCS to LSF as it may violate some the specification limits of LSF. As demonstrated above clear understanding of matrix arithmetic is required to troubleshoot material out of balance errors in PIMS by conventional method. In case of Platinum this can be immediately identified from the flow sheet as it underscored streams out of balance as a red line. As shown in Figure below, hovering mouse over the stream depicts that stream CCS is out of balance with a slack of 1,002.66 (approximately 1,003) Also, double clicking on the FCC unit results in the following detailed visualization of the SCCU unit which showed that 2,425 bbl/day of CCS is produced in SCCU (Catalytic Cracking Unit), however; 1,003 bbl/day of CCS is dumped on the ground This clear visual presentation of the problem by platinum enables the user to fix this warning message by either selling the excess CCS or by relaxing the specification limits of LSF. Keywords: Platinum Visualization Tracking process units Tracking streams References: None
Problem Statement: In my Aspen PIMS menu, the Platinum icon is greyed out. How do I fix it?
Solution: For V8.2, it is possible there is a registry setting that is not properly configured. Open Regedit from the Start menu. Under the following key (for example, W7, W2008 R2, 64bit), HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AspenTech\AspenPIMS\PtExecDirectory should be the location of the Platinum Solo executable file, such as: C:\Program Files (x86)\AspenTech\PIMS Platinum\bin\ If that’s missing, then this is the source of the problem. If it is not missing, then remove the entire User Settings folder at: HKEY_CURRENT_USER\Software\AspenTech\PimsWin After modifying the registry, open Aspen PIMS again, the Platinum Icon should be active now. Keywords: None References: None
Problem Statement: When attempting to enter the very first recipe into a record of MachineDef type on a newly built system, all attempts to enter data in the first occurrence of the product repeat area failed. The error message received via both Engcon and SQLplus was: Invalid key time stamp
Solution: This has nothing to do with the new field SIS_KEY_TIME at the end of the repeat area. Data cannot be entered into the repeat area until history has been initialized. To do this, the system must be forced to process one bump into the repeat area and therefore into the historical data system. This is accomplished in a MachineDef record by depositing a time into the SIS_PROD SCHED TIME in the fixed area. If the time has already passed, the system immediately notices that it is overdue to push data into history, and does so. From that moment on, the historical data has been initialized and fields in the repeat area can receive values (to the extent that they are defined as Changeable). WARNING: If a value is in the SIS_PROD CHANGE TIME field in the fixed area when history is initialized, that value is propagated to the new SIS_KEY_TIME field, which cannot later be changed. Credits Bonnie Huval KeyWords Keywords: None References: None
Problem Statement: What is the standard Aspentech interface between MIMI and SAP ?
Solution: AspenTech has developed a pre-configured integration using Informatica Power Center along with an Oracle data repository. In release 1.5 of Aspen Supply Chain Connect (December 2003), it provides direct integration with SAP R/3 for DM (Demand Management) and SP (Supply Planner) CAPS. This is the Aspentech standard for SAP R/3 integration which can accept and generate XML documents and uses ABAP and SQL. The next release 1.6 (Spring 2004) will add support for Multi-User Scheduling, MS SQL Server and Oracle 9i. The following release 2.0 (Summer 2004) will add support for PS (Plant Scheduler). For additional information about Aspen Supply Chain Connect, please go to our Support Web site (http://support.aspentech.com). Select Documentation from the Technical Library and locate the eSupply Chain Suite Documentation. Select Aspen Supply Chain Connect product. KeyWords SUPPLY CHAIN CONNECT SAP DM PS DS IP CAPS Keywords: None References: None
Problem Statement: Below is an electronic version of the DVD insert which accompanies the aspenONE Engineering V8.2 release.
Solution: aspenONE Engineering V8.2 delivers a wealth of new and enhanced capabilities. We strongly recommend that you update your installation to the latest versions of every product to optimize performance. aspenONE Engineering V8.2 is delivered on the Aspen Engineering Supplemental DVD that’s included with your media kit and builds on the Aspen Engineering V8.0 DVD also in the kit. The following products include significant new functionality and are being delivered as full-install versions on the Aspen Engineering Supplemental DVD: Aspen Plus® V8.2, Aspen Properties® V8.2, Aspen Simulation Workbook V8.2, Aspen HYSYS® V8.2, Aspen Energy Analyzer V8.2, Aspen Flare System Analyzer V8.2, Aspen Version Comparison Assistant V8.2, aspenONE V8.1, Aspen PIMS V8.2, Aspen PIMS Platinum V8.2 Enhancements and defect fixes – delivered as patches* - are also included on the Aspen Engineering Supplemental DVD for the following products: Aspen Basic Engineering V8.0.2, Aspen Exchanger Design and Rating V8.0.2, Aspen Economic Evaluation V8.2, aspenONE V8.2 To upgrade on a machine in which V8.0 is already installed: 1. Using the installer from the Aspen Engineering Supplemental DVD, install products with full V8.2 versions or aspenONE V8.1. 2. Manually apply patches (including aspenONE V8.2) from the Patches folder on the Aspen Engineering Supplemental DVD. 3. See KB 137068 for more information how to upgrade each product. To upgrade on a machine in which V8.0 is not installed: 1. Using the installer from the Aspen Engineering Supplemental DVD, install products with full V8.2 versions or aspenONE V8.1. 2. Install other products using the installer from the Aspen Engineering V8.0 DVD. 3. Manually apply patches (including aspenONE V8.2) from the Patches folder on the Aspen Engineering Supplemental DVD. 4. See KB 137060 for more information on how to install each product. Notes 1. The Aspen Economic Evaluation V8.2 upgrade is delivered as a patch which, once applied, will replace Aspen Economic Evaluation V8.0. 2. Aspen Online Deployment V8.0 and Aspen Online® V8.0 must be used with Aspen Plus V8.0 or Aspen HYSYS V8.0. Aspen Plus V8.2 and Aspen HYSYS V8.2 will not interoperate with Aspen Online Deployment and Aspen Online. 3. Use the Aspen Version Comparison Assistant to evaluate new versions of Aspen Plus and Aspen HYSYS against your existing versions of the products. * You may also download patches from the Upgrade Center, which are accessible within the specific products. Keywords: aspenONE Engineering V8.2 Upgrade Requirements for V8.2 Upgrade Recommendation for V8.2 References: None
Problem Statement: Instructions to install Patches for Administrative Management , Data Management and Model Management
Solution: Steps to Install Patches for AdminMngmt, DataMngmt and ModelMngm 1. Notify users that the Web application will be down for 15 minutes. 2. Detach attachment and unzip files in any empty temp directory on the Web server. 3. Go to "Computer Management" on Web server (right-click on the computer icon on the desktop, then select "manage"). 4. Expand "Services and Applications" entry in tree. 5. Expand "Internet Information Services" entry in tree. 6. Stop "Default Web Site" (right-click on "Default Web Site" and select "Stop"). 7. Backup the current AdminMngmt, DataMngmt and ModelMngmt (Copy or Zip and copy, the directory and files located at c:\Inetpub\wwwroot\AspenTech\ASCC\ModelMngmt) to an empty temporary directory. 10. Copy the newly unzipped AdminMngmt, DataMngmt and ModelMngmt to the original installed locations. 11. Find the file Web.config in the root directory of each application module, re-install the original file by copy and paste. 12. Start the "Default Web Site" (right-click on "Default Web Site" and select "Start"), Need to wait 1-3 minutes before the process is fully started. 13. Test the Model Management application to make sure everything is working and the fix has been applied. 14. If any problems occur, stop the "Default Web Site" and move the original versions of the replaced files back into place. Restart the "Default Web Site", and report the problem to AspenTech support. KeyWords AdminMngmt DataMngmt ModelMngm Model Management Data Management Administrative Management Keywords: None References: None
Problem Statement: How to add a table on the program flow field.
Solution: Open Informatica PowerCenter Designer Window. Click on the Mapping Designer icon. Drag a workflow name (located at the left side of the workspace window) into the Mapping Designer window. Double click on the top part of the workflow Application Source window. "Edit Transformation" window will open then click on Properties button. Click the value field to place a value on the Program Flow. Click on the drop down arrow within the field then.... Click on the plus sign next to ZT002 and make sure the name ZT002 is on the Source Name field. Click OK button and ZT002 will become the value for number 4, which is the Program Flow. KeyWords Program Flow Keywords: None References: None
Problem Statement: While trying to register the Aspen Process Data COM add-in specifcially the file named AspenTech.PME.ExcelAddin.ProcessData.dll using the batch file available with KB 134243, you may receive the error "RegAsm : error RA0000 : Failed to load "C:\Program Files (x86)\Common Files\AspenTech Shared\ExcelAddIn\AspenTech.PME.ExcelAddin.ProcessData.dll". This solution explains how to resolve this error and succesfully register the dll
Solution: This error occurs because the batch file available with the article uses the Regasm utility available with Microsoft .NET framework v2.0.50727 and this utility do not work if there is a higher version of .NET framework available on the system. To resolve this error follow the steps mentioned below: 1. Check in C:\Windows\Microsoft.NET\Framework to know the version of .NET you have installed. Such as v4.0.30319. 2. Open a command prompt window and make sure to Run as Administrator 3. Type cd C:\Windows\Microsoft.NET\Framework\v4.0.30319 4. Then type regasm /codebase /tlb "C:\Program Files (x86)\Common Files\AspenTech Shared\ExcelAddIn\AspenTech.PME.ExcelAddin.ProcessData.dll" The dll should be registered with the success message as shown above.Once the add-in gets registered try loading the add-in and see if it loads successfully. Keywords: Excel Add-In Regasm References: None
Problem Statement: Received the following error during installation and configuration of the Aspen Framework Server: InternetOpenUrl error code: 12029 Message: A connection with the server could not be established
Solution: The reason for this error is that the MSADC (Microsoft Advanced Data Connector) directory from IIS (IIS -> [nodename] -> Default Web Site -> masadc) had previously deleted because of the known security problems it had in v2. Once restored, everything should work fine. If this is not successful, see solution 105971 for further instruction. KeyWords internet information services default web site msadc Keywords: None References: None
Problem Statement: When using Novell for Authentication, the user's context from the server's viewpoint will probably be <local computer name>\<user name>. SSTest will show this data in the Login Domain and Login User Name fields on its start page. Our software will attempt to query the Login Domain (local computer for Novell) for the NT Group List. There is an ER for 2.6, developed for AMS 6, that provides a way to turn off group processing for these types of configurations. This makes the configuration a little easier. Normally, customers with Novell will have to create a Read-type role and assign the Everyone NT Group to this role. The few people who have write or change access would have to be registered as "local computer name"\"user name" into those roles. There are cases where SSTest works fine on both the IP.21 Server and clients, and Process Explorer works OK. But in the AFW Security Client Tool Diagnostics, the out-of-process method is not able to resolve roles for normal users but the in-process approach works fine. (SSTest uses in-process).
Solution: Use a Domain User to start the AFW Security Client Service so that this service can obtain the user objects from Active Directory for all IP.21 Users. KeyWords framework netware Keywords: None References: None
Problem Statement: This knowledge base article describes the steps required to manually replace your existing files with the files from the pre-v2004.2 Aspen Security memory leak patch.
Solution: If some of the patch files didn't get installed successfully you can extract them from the patch executable then replace them manually. To do this: ? There is code in the memory leak patch to stop both the IIS Admin service and the AFW Security Client service. Therefore, you should manually stop both of these services before you manually replace the files. ? Right click on the memory leak patch ? Open it with Winzip ? Extract the files to a temporary folder ? There will be 4 folders created inside your temp folder after Winzip completes the extraction. Each folder contains the patch files for a specific version. ? Locate the patch files for your version of Aspen Framework or Aspen Local Security. Replace your existing files with the patched versions. Note: If you need to manually replace AfwDb.dll or PfwSecurity.dll you should register these dlls with regsvr32 after the files have been replaced. Keywords: patch ER fail References: None
Problem Statement: Microsoft issued the following security warning today, and we recommend that you install their patch to all of your NT 4 or Windows 2000 Web Servers using the Microsoft instructions provided below.
Solution: Please, apply the patch for Security Bulletin MS01-033 "Unchecked Buffer in Index Server ISAPI Extension Could Enable Web Server Compromise" to your NT4 and Windows 2000 web servers immediately! The bulletin and patch are posted at http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/bulletin/MS01-033.asp. There have been valid reports of the spread of the .ida "Code Red" worm which checks IIS servers that are not patched for MS01-033 and then checks for other systems vulnerable to infection. The full analysis of the .ida "Code Red" worm has provided numerous new details as to the functionality and method of propagation of this worm. For instance this worms purpose ultimately seems to be to perform a denial of service attack against www.whitehouse.gov. Also it has been found that only US English Windows NT/2000 systems will show the defaced ("Hacked by Chinese!") web page. Many news agencies ran reports regarding this vulnerability in an effort to raise awareness, but this also raised the awareness of those who would exploit the vulnerability. Other viruses may be being developed, or may even be already released. Please, apply this patch as soon as possible! All the current Security Bulletins are at http://www.microsoft.com/technet/treeview/default.asp?url=/technet/itsolutions/security/current.asp . CLARIFICATION ON OTHER WORMS OUT THERE: .ids "Code Red" Worm is not the same as the W32.Leave.B.Worm. W32.Leave.B.Worm is a Worm that propagates primarily through a false URL in a bogus Microsoft Security Bulletin. There are at last report, 2 bogus Microsoft Security Bulletins circulating, one claiming to be MS01-037 and one claiming to be MS01-039. Valid MS Security Bulletins do not contain URL's for download. Readers are directed to the web site for links to the patches at all times. Please refer to http://www.microsoft.com/technet/treeview/default.asp?url=/technet/itsolutions/security/news/bogus.asp for more information on the bogus security bulletins. Finally, Outlook View Control Worm (VBS.Yang@mm) has been reported today on SARC (http://www.sarc.com/avcenter/venc/data/[email protected]) and some other vendors? sites. This Worm is reported to exploit the Outlook View Control issue published last week by Georgi Guninski, MS01-038. The latest reports are that this is NOT spreading, but that could change. Please see http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/bulletin/MS01-038.asp. KeyWords: virus bug MS Personal web server Windows NT Option Pack 4 Keywords: None References: None
Problem Statement: This knowledge base article describes how to determine if a model is executed using Aspen PIMS-AO.
Solution: Aspen PIMS-AO is enabled or disabled by a checkbox that is set by the user. You can choose to execute a PIMS model using PIMS-AO by either method described below: 1. Check the Use Advanced Optimization option and by selecting Advanced Non-Linear (XLP) in the Model Setting General |General tab as shown below, or 2. Click on the "AO" icon in the menu bar. If neither of these options are checked the PIMS model will not use PIMS-AO. If you save an Aspen PIMS model with the "Use Advanced Optimization" checkbox unchecked then Aspen PIMS-AO will not be automatically loaded upon model load. In addition, there are visual indications in the interface which help determine if a model run was completed using PIMS-AO or the traditional DR method. For example: Once PIMS-AO is enabled a log file named TableLoadLog.lst is created This log file is not created in DR PIMS-AO model settings will have new handles - XNLP and XSLP settings DR has Recursion settings Execution log enumerate iteration and other convergence check for PIMS-AO Execution log list enumerate iteration and recursion passes Keywords: DR run Versus AO run DR execution Versus AO execution Compare AO and DR References: None
Problem Statement: When the license key expires, users update their FlexLM License Management Selector to point to a new updated license key. However PIMS still issues a warning about the key expiring.
Solution: Workaround: Using Windows Explorer, search entire machine for any old license key files (*.lic). Delete or rename any old license key files. Apparently PIMS is performing it's own search and will find the old keys, even when the FlexLM License Management Selector is pointing to the new key. Development is working on this issue. KeyWords license Keywords: None References: None
Problem Statement: Can I install Aspen Framework without having Visual Source Safe installed?
Solution: Aspen Framework can be installed without already having Visual Source Safe installed. Visual Source Safe is required only if one is planning on using the File Repository feature of Framework. If one changes one's mind and decides to use the file repository some time after the initial install Framework, then it is a simple matter of adding the name of the VSS server in AFWTools under File Repository Server. KeyWords: new file repository server Keywords: None References: None
Problem Statement: The last step of the Framework Post Installation procedure is to test the Business Process Explorer (BPE). The configuration of the Microsoft Internet Information Server (IIS) on some Framework servers may cause BPE to fail during this step. In these cases, BPE will freeze before its display pane is rendered after selecting a valid profile.
Solution: Make sure the AspenTech Virtual Directory underneath the Default FTP site was successfully created during the installation process. This directory should have been created when the Internet Server Configuration Tool was run during the first step of the post installation procedure. This utility is located under AspenTech in the Start Menu. The existence of this Virtual Directory can be checked using Internet Service Manager which is part of IIS. Expand the Default FTP site folder to show the virtual directories assigned to this site. If the AspenTech Virtual Directory does not exist, left click the Default FTP site and select the New Virtual Directory right mouse click option. Grant Read, Write and Log permission and set the local path to InetPub\ftproot\AspenTech. KeyWords: post install Aspen Framework Installation BPE activation error Keywords: None References: None
Problem Statement: Why would calculations using data from PREP sheet potentially produce wrong results when OXE (Orion Excel Emulator) is turned on?
Solution: If the PREP sheet is OXE, APS will write out to Excel only at the end of simulation, not for every time period. Therefore if there are any calculations based on updated data from PREP sheet, they will most likely produce wrong results. In order to write out to Excel for every time period with OXE there needs to be an additional row: "EXCEL_PREP_ALSO" with the value of "Y" in the CONFIG table: Keywords: OXE PREP calculations References: None
Problem Statement: When loading Aspen SCM cases off of a file server, I am experiencing very long load times.
Solution: Long network load times were isolated down to an incompatability with Aspen SCM and cc:Mail. The offending parameter is set by cc:Mail at load time, but probably is not limited to cc:Mail since it is a registry setting utilized to control data movement. The parameter is: Hkey_local_machine\system\currentcontrolset\services\lanmanworkstation\parameters: UtilizeNTcaching - disabled. This parameter must either not exist in the registry or be set to enabled. If enabled it allows 8 Kilobyte transmission packets, if disabled, 256 byte packets. If the entry doesn't exist, the default is enabled, so the problem is precluded. Keywords: None References: None
Problem Statement: I am trying to have a message display with my sleep command in SCM running on Windows. The message does not appear.
Solution: The SLEEP command instructs SCM to pause for a specified number of seconds between commands. Execute in macros and rules. A common use of SLEEP is to execute commands that require a response from another system. Switch #18 in the session control window defines the default number of seconds for the SLEEP command. Use the seconds argument only to: ? Override the default sleep duration or ? Display a message during the sleep pause. Syntax SLEEP [seconds [message]] Examples: SLEEP SLEEP 30 SLEEP SLEEP 60 SCM IS CHECKING THE DATA (NOTE: This only works in UNIX release of SCM. The windows release does not support this syntax.) Description of Arguments ? seconds: (Required only if you want to display a message) The number of seconds you want SCM to pause in between commands. Default is 10 seconds. ? message: (Optional) A message to be displayed in the message area during the pause. Keywords: References: None
Problem Statement: Which patches are available through the Aspen Update Center?
Solution: Only Cumulative Patches (CP) for each Aspen Product can be downloaded through the Aspen Update Center. All Emergency Patches (EP) or hotfixes cannot be downloaded through the Aspen Update Center and have to be downloaded manually from our Support Site’s Patches page: http://support.aspentech.com/webteamasp/My/FrameDef.asp?/webteamasp/AllServicePacks.asp Keywords: Update Center, Cumulative Patches, CP References: None
Problem Statement: Where does Aspen SCM store the Options --> System settings?
Solution: The Options --> System settings is a property sheet dialog with four property pages: System, Files, Editors and Window Attributes . Settings of above properties are stored in three places. Among them, two are stored in the registry and one in the SystemOptions.fmt file. The two registry locations are HKEY_CURRENT_USER\Software\AspenTech\mimi (HKCU for short) and HKEY_LOCAL_MACHINE\Software\AspenTech\AspenMIMI\ (HKLM for short). The SystemOptions.fmt file is stored in the System Files folder ..\Program Files\AspenTech\aspenmimi\Bin . The following explains where and how each properties are stored and retrieved: 1. System - All the information is stored in the HKCU location. This is a per user setting. 2. Files - Has three entries: Home Directory folder, System Files folder, and the Case Files (or data files) folder. System Files and Home Directory entries are stored in HKLM location. Case Files is stored in both the HKCU and HKLM locations. The location in HKCU has precedence over HKLM i.e. HKCU setting is used, HKLM setting is used only if HKCU setting is missing. 3. Editors -Most settings for the editors are stored in HKCU location. This window also contains two dialogs - The Header/Footer dialog and Page Setup dialog - their information is stored in the file SytemOptions.fmt. 4. Window Attributes - All the information is stored in the HKCU location. KeyWords Options System Setting Editor Window Attribute Keywords: None References: None
Problem Statement: How do I allow my customers to enter a PO(Purchase Order) number that will be attached to the order when it is delivered in Aspen Retail?
Solution: In order to allow a customer to enter a purchase order number on the ivr when placing orders, make the following configuration change through the RETIVR.ini: ; Set PONumber=1 if we want to prompt the user to enter a PONumber ; Set PONumber=0 if we do not want ot prompt the user to enter a PONumber Keywords: PO, PO Number, Purchase Order References: None
Problem Statement: Sometimes companies have expressed the desire to allow their customers the ability to transfer to an operator without logging into the system first. This is particularly useful if the customer has forgotten their login id or pin number.
Solution: In order to allow your customers to do this, you should make the following configuration change in the IVR: 1 = (Default) allows transferring to an operator before login. ; 0 = not allow transferring to an operator before login. OperatorBeforeLogin=1 Keywords: transfer, operator References: None
Problem Statement: Installation of Aspen SCM fails with an error message i.e. "There was a problem with configuring Aspen SCM. Return code is 1620"
Solution: The error message "Return Code is 1620" usually means the installation package could not be opened, this could be a problem with the DVD ROM or a bad DVD disk. To know more details about the error code, please visit the following Microsoft article that describes list of error codes and error messages for Windows Installer processes http://support.microsoft.com/kb/229683 If the problem persists, please request a new set of DVDs Keywords: Error Installation error Return Code is 1620 References: None
Problem Statement: While there is quite a bit of information in the Aspen DPO HELP about automation and the various commands, it is sometimes helpful to have an example to work with.
Solution: Attached is an example file. There is detailed information about the specific commands in the Aspen DPO HELP file - look in the Table of Contents page under AUTOMATION. Keywords: automation References: None
Problem Statement: Can you provide a simple distribution optimization problem to understand the matrix formulation in Aspen Petroleum Supply Chain Planner (PSCP)?
Solution: A typical PSCP model structure consist of nodes and arcs. At any node (location) the materials may be: ? Acquired by purchase or production ? Supply; Recipe & Operations ? Consumed in production of other materials ? Recipe & Operations ? Transported in from another node ? Transport, Segment ? Transported out to another node ? Transport, Segment ? Held in inventory - Inventory ? Sold - Demand ? Exchanged for other materials at other nodes - Exchange The nodes might include processing facilities, terminals, storage facilities, trans-shipment locations, and demand nodes The arcs or links indicate that materials may be transported from one node to another. PSCP input data will identify all possible links. Transportation may be accomplished by different modes such as rail, ship, barge, truck, etc. Capacity limitations on purchase, demand, production and materials handling may be readily imposed by the user Example Network optimization problem Minimum-Cost capacitated flow problem Taken from: Taha, H. A. (2006). Operations Research: An Introduction. 7th edition, Pearson Education Limited, New Jersey. GrainCo supplies corn from three poultry farms. The supply amounts at three silos are 100, 200, and 50 bushels; and the demands at the three farms are 150, 80, and 120 thousand bushels. GrainCo mostly uses railroads to transport the corn to farms, with the exception of three routes where trucks are used. Figure shows the available route between the silos and the farms. The silos are represented by nodes 1, 2, and 3 whose supply amounts are [100], [200], and [50], respectively. The farms are represented by nodes 4, 5, and 6 whose demand amounts are [-150], [-80], and [-120], respectively. The routes allow transporting between the silos. Arcs (1, 4), (3, 4), and (4, 6) are truck routes with minimum and maximum capacities. For example, the capacity of route (1, 4) is between 50 and 80 thousand bushels. All other routes use trainloads, whose maximum capacity is practically unlimited. The transportation costs per bushel are indicated on the respective arcs. x12 x13 x14 x23 x25 x34 x35 x46 x56 Minimize 3 4 1 5 6 1 2 1 4 Node1 1 1 1 = 110 Node2 -1 1 1 = 200 Node3 -1 -1 1 1 = 50 Node4 -1 -1 1 = -150 Node5 -1 -1 1 =- 80 Node6 -1 -1 = -120 Lower bound 0 0 50 0 0 70 0 100 0 Upper bound ∞ ∞ 80 ∞ ∞ 120 ∞ 120 ∞ Keywords: DPO matrix Example DPO problem DPO example PSCP matrix PSCP example problem References: None
Problem Statement: Why does the IVR sometimes allow same day orders in the same segment for some customers?
Solution: There are a few things to check, starting with the more common causes: Check the customer setup and make sure that LEAD TIME CHECK checkbox is enabled (see attached screen snapshot) Check the terminal setup to be sure the time zone hours are setup properly (see attached screen snapshot) Check the ORDER.INI file settings. Verify the setting TZAdjust=1 is used to enable the time zone check. Also review the cutoff times and cutoff shifts. Make sure the cutoff times are reasonable. As an example: LEAD TIME Check Using these INI entries; [ADD] Cutoff1=00:00 Shift1=1 Cutoff2=06:00 Shift2=1 Cutoff3=10:00 Shift3=2 Cutoff4=12:01 Shift4=3 Cutoff5=18:00 Shift5=2 Friday=5 Saturday=4 Sunday=3 [CHANGE] Cutoff1=00:00 Shift1=1 Cutoff2=06:00 Shift2=1 Cutoff3=10:00 Shift3=2 Cutoff4=12:01 Shift4=3 Cutoff5=18:00 Shift5=2 Friday=5 Saturday=4 Sunday=3 Check the IVR server's system clock - make sure the date and time is correct. KeyWords: Keywords: None References: None
Problem Statement: In implementing or maintaining the Aspen IVR system, one often has to deal with different telephony parts (dialogic card, PBX, Ominvox, etc). It would be very helpful to understand what is the relationship between these parts and Aspen IVR and what AspenTech supports.
Solution: Basically, your telecom provider will provide the telephony hardware and PBX switches. You would have to purchase the dialogic cards and Omnivox from a third pary vendor or from Apex (AspenTech partner). AspenTech customer support provides the support on Aspen IVR. If you purchase Omnivox from Apex, but through AspenTech, you would also contact AspenTech for Omnivox issues. The following diagram illustrates the interactions. KeyWords IVR, Omnivox, PBX, Keywords: None References: None
Problem Statement: The Start and Stop buttons on Line Manager are grayed out
Solution: See attached document for solution and screen shots KeyWords Line Manager Apex IVR Keywords: None References: None
Problem Statement: How do I prevent the IVR from reading the trigger date back to the customer?
Solution: In order to prevent the IVR from reading back the trigger date to the customer, the following ini file entry should be configured in the RETIVR.INI ; 1 = speak, 0 = no, default = 0 SpeakTriggerDate=1 Keywords: trigger, trigger date, IVR References: None
Problem Statement: How do I change the unit that is read back to my customers on the IVR from Gallons to Liters?
Solution: The default voice file that will be read back through the IVR is "Gallons". In order to make the IVR read back the voice prompt for liters, the following change should be made in the RETIVR.ini: ; 0 = say "gallons" ; 1 = say "litres" VolumeUnit=0 Keywords: Gallons, Liters, Unit, IVR References: None
Problem Statement: Startup Service for IVR 7.5 Does Not Start Up On Reboot When It is Set on Automatic
Solution: The problem maybe that the USER ID that is on the services PC does not have the service rights to start the startup service. Here are some screen shot to help you see if the ID has the rights. Version 7.5 only works on OS W2000 and XP so these screen shots are from W2000, Go into the Administrative Tools/Local Security Settings There are Local Settings and then there are Effective Settings. Effective Settings are domain-level policy settings, or rights handed down by the domain adminstrator rather than the local user with Administrative rights. If you are installing software that needs Logon as a Service Rights, that policy needs to be handed down to you by the domain adminstrator. KeyWords: Start up Reboot Services Keywords: None References: None
Problem Statement: Getting a UUID error
Solution: Copy all of the IVR log .TXT files into another folder and restart the IVR. This should fix the UUID error KeyWords: UUID IVR Keywords: None References: None
Problem Statement: How can we improve solutions calculated by the SEARCH algorithm?
Solution: By adding more flexibility we can potentially have better solutions. How can we get more flexibility? Splitting activities - SEARCH (using M JIT) calculates a single JIT bound for each activity. If activities are long then they have a JIT bound at the point where the first material is required. Splitting activities into smaller batches gives a more detailed and accurate calculation of JIT for each of the smaller activities. Split activities down to some suitable incremental batch sizing, then use product families (which can be a one to one match with products) to bring activities back to a minimum run length. For example, if you have 1200 tonnes of production, and the minimum run length is 400 tonnes, you can approach the problem in multiple ways. If you leave the 1200 tonnes as 1 activity SEARCH doesn't have much choice. If you split into 400 tonne activities, SEARCH can then have 3 x 400 tonne batches, or join them to 800 or 1200 tonne runs. If you split into 100 tonne activities, SEARCH can make 3 x 400 tonne batches or two batches of 400 tonnes, or one 1200 tonne run. The more you split the more flexibility SEARCH has to find different solutions, and the more flexibility it has the better the solution it can find. The trade-off here is that the more you split the activities up the more activities there are to sequence, so the longer SEARCH takes to find a solution. KeyWords SEARCH M SEARCH M JIT Keywords: None References: None
Problem Statement: How can I use the functionality that will make the IVR stop taking orders for customers after a shift maximum has been reached?
Solution: In order to have the IVR calculate the amount of manual order hours entered per shift, the following ini setting needs to be set in the RETIVR.ini: ; 1 = Do the TruckHoursPerShift check for New Manual ORders / Modify Manual Order ; 0 = Don't do the TruckHOursPerShift check TruckHoursPerShiftCheck= 1 Keywords: Truckhourspershiftcheck, manual order, order limit References: None
Problem Statement: How can I set up the IVR to use more than 1 language on the same machine?
Solution: Please see attached document Two_Language_IVR_Document.doc Keywords: IVR, Language References: None
Problem Statement: How many product categories can be set up in the IVR?
Solution: They are limited to 9 product categories, but they can have unlimited products under each category. For example, Unleaded Gasoline A Unleaded Gasoline B Unleaded Gasoline C All three of these product types could be set up in retail under separate product codes. Since of each of these products is unleaded they would each be assigned a product category of "UNLEADED". It is the product category field that tells the IVR what voice prompts to read. So every product that is set up as "fuel category number 3" will get the same voice prompted in the IVR. So one could create 50 products all with different names and numbers but if all 50 products were assign to "fuel category number 3" the IVR would read the same voice prompt for each one. So one can have "nine distinct" prompts read by the IVR. Inside the .ini settings for the IVR they will see the following: [Fuel Categories] fCategory1=SUPER.vox fCategory2=SPECIAL.vox fCategory3=REGULAR.vox fCategory4=DIESEL.vox fCategory5=LEADED.vox fCategory6=SUPREME.vox fCategory7=KEROSENE.vox fCategory8=PLUS.vox fCategory9=SUPER2.vox This controls what vox file is read for each product category. KeyWords: Fuel category IVR Keywords: None References: None
Problem Statement: Will changing the name of the machine Aspen SCM is installed upon affect the license?
Solution: Changing the name of the machine where Aspen SCM is installed will have no effect on the license. HOWEVER, it will affect the "Chesapeake Distributed MIMI Request Broker" service. To prevent this problem, you can reinstall Aspen SCM after changing the name. There is also a shorter way to fix this problem, but you must have access to editing the registry. Steps to edit the registry are as follows: 1. Exit out of SCM 2. Select Run... from the Windows Start menu 3. Type in regedit and click OK 4. Once the registry is loaded, follow the paths to the following folder: HKEY_LOCAL_MACHINE\SOFTWARE\AspenTech\AspenMIMI\x.x where x.x is the version of SCM installed. 5. Double click on each of the following 3 registy keys and change the value from the old server name to the new server name. MIMI_MACHINENAME MIMI_NAME_SERVER MIMI_WEB_SERVER 6. Start MIMI to see if the broker is running. A good way to test is to type PROCNAME at the command line and see if it comes up with the name of the new machine. KeyWords INSTALL INSTALLATION LICENSE BROKER SERVER PC NAME Keywords: None References: None
Problem Statement: The IVR hangs up or gives an error message when trying to transfer a call to the operator (by typing *#0).
Solution: Possible trouble spots could be: -missing or invalid entries in the termphone table. the definitions for call transfer in the ORDER.ini file. missing couldnotconnect.vox Invalid Phone Entries: The IVR will terminate the call or give an error message if a valid number is not entered on the Terminal setup form. Check to see if there are telephone numbers on the IVR form (go to the Terminal setup form, and click on the telephone icon on the toolbar). If an area code is needed, make sure the complete phone number is listed. ORDER.INI Definitions The other cause for asking the IVR to dial an invalid number is to omit the outside line prefix, usually a '9'. If a prefix is needed to obtain an outside phone line be sure the prefix has been configured in the ORDER.INI file: The options for dialing a '9' prefix would be: DigitPrefix4= DigitPrefix7= DigitPrefix10=91 Other Diagnostics The log file should reveal an error if the IVR simply hangs up. If there is no error in the log file, then the phone system may have made mistakenly assumed the connection to the IVR was good, when it was indeed a bad connection. Check to see if the transfered calls are dropped only after the user logs in. If the calls will transfer before the login, but not after, check the default or backup transfer number in the INI file. KeyWords: Keywords: None References: None
Problem Statement: How do I turn on the ability to confirm deliveries through the IVR?
Solution: The following setting in the RETIVR.ini needs to be configured to allow the confirmation of deliveries through the IVR: ; Set LoadConfirm=1 if we want to make the Load Confirm option available ; Set LoadConfirm=0 if we do not want to make the Load Confirm option available Keywords: load confirmation, delivery confirmation References: None
Problem Statement: Which version(s) of MapPoint work with Aspen Petroleum Supply Chain Planner V7.3.1 on Windows 7?
Solution: Aspen Petroleum Supply Chain Planner (formerly called DPO) V7.3.1 and V8.0 only work with MapPoint 2006 or 2004. Later MapPoint versions are not supported. Keywords: -MapPoint -Software requirements References: None
Problem Statement: How do I customize an ASP page in E-Chain:
Solution: Attached is a document specifying the requirements for an ASP page that the client can develop themselves to allow for encryption/decryption or any other customizations they wish to make. The document also contains an example of such an ASP page. The details are in the attached document on the customizable files "eChain.ini", "_eChainXML.css" & Automatic Login an ASP page in E-Chain AspenTech do not plan to support client encryption/decryption. KeyWords: ASP page Customization Encryption Decryption Keywords: None References: None
Problem Statement: How to turn on Debugging for Apex Omnivox Software
Solution: 1. Go to the \usr\apex\logdata dir and delete all the debuglog* files. 2. Go to OmniVox, System, Line Manager, Debug Level, Click on All on, All Lines and Check Put debug into file. 3. Go to Omnivox, Monitor, Lines. Generate the calls. 4. Now go to the \usr\apex\logdata dir. There will be a debuglog.x where x is the line number. Keywords: Apex, Omnivox, Debugging References: None
Problem Statement: How do I modify the IVR to allow a customer to lock the trigger dates on orders?
Solution: In order to allow your customers to lock the trigger dates on orders through the IVR, you will need to modify the following setting in the RETIVR.INI: ; 1 = lock, 0 = no lock, default = 0 Keywords: trigger, lock SetTrigLockOnChange=0 References: None
Problem Statement: What does the Lead Time check box for EChain perform?
Solution: If the Lead Time check box is selected in Customer Setup, this will enforce the cutoff rules configured in the LTConfig.ini file. These rules are around allowed ordering times and days in the future. If this box is not selected, customers may be able to order for almost any time. In general most Companies using Web Fulfillment Management will configure customers with this Lead Time check box selected. This ensures dispatchers have sufficient "lead time" to get deliveries scheduled in time. Keywords: Lead Time, LTConfig.ini References: None
Problem Statement: What does the Lead Time check box for IVR perform?
Solution: Under Customer Setup, the Lead Time check box allows the IVR to control whether the caller will be required to abide by the rules surrounding order placement configured within the LTConfig.ini configuration file. If this check box is not selected, the caller is free to call for an order at any time. Keywords: Lead Time, LTConfig.ini References: None
Problem Statement: :
Solution: PIMS allows for some qualities to be handled gravimetrically while others are handled volumetrically. This only applies to specification blending, however. Through the use of table WSPECS, qualities in specification blends can be blended on alternate bases. Remember, all blending in PIMS is done on a volume basis unless that quality is in WSPECS. Also, if weight based quality blending is being performed then the warning message about missing specific gravity takes on significant importance. KeyWords: submodel weight volume recursion distributive Applications applications gravimetric volumetric blending Keywords: None References: None
Problem Statement: If a model is setup with a swing stream between the Atmospheric Gasoil and the Atmospheric Resid cuts, the vacuum unit will not be in material balance if any of the swing stream drops down. The issue is that PIMS does not have a composition of the swing stream in terms of the Vacuum gasoils. Therefore, it does not allocate the swing volume to Light Vacuum Gasoil properly.
Solution: This can be fixed by manually entering data that indicates the swing stream is composed of Light Vacuum Gasoil. This is done in Table ROWS with the following entry. TABLE ROWS TEXT SCD1GR- RLV1AR1 Fraction LV1 in AR1 -1 NOTE: Above example assumes the crude unit is SCD1, Swing cut is GR1, Light Vacuum Gasoil stream is LV1, and Atmospheric Resid stream is AR1. Note: PIMS 13.3 now automates this procedure KeyWords pims swing vacuum Keywords: None References: None
Problem Statement: A property is correctly set up to be recursed, yet the model solution always indicates the recursed property value is zero.
Solution: One of the places this property was recursed was within a submodel. This particular submodel was a delta based model with shift vectors and some of the shift vector columns had hard-coded entries into the property's recursion row. These shift vectors had not been designated as FREE. This caused PIMS to calculate an extreme value for the recursed property range (MIN = -10 E15) which was skewing the recursion and causing the error. Designating the shift vectors as FREE resolved the issue. KeyWords recursion Keywords: None References: None
Problem Statement: In periodic models (PPIMS), there might be a need to set up capacity constraints that span over several or all the periods. Also, these constraints might be defined for the total number of days of all periods, instead of a per day basis. How do you set up these type of constraints?
Solution: To set up this constraint, you have to define a Capacity Row (e.g. CCAPPTL1) in Table CAPS and in Table ROWS, and use the full, period-specific names of columns that you want to put the limit on (e.g. SCCUBP21 refers to the activity of column BP2 of submodel SCCU in period 1). If you wish to constrain the sum of the period totals of these activities, you can use the 888 placeholder as the coefficients of the equation. These 888 placeholders are replaced by the period lengths at matrix generation time. This aproach has two advantages: (1) you do not need to insert the specific period lengths and (2) you do not have to check for consistency if you change periods or period lengths. Please note that you need to append a period identifier to the Capacity Row, i.e. CCAPPTL1, so that the equation is generated only once. The entries in Table ROWS look like this: Note: In Table ROWS, the number 888 is a placeholder for the length of the period indicated by the column name. For example, for SCCUBP23, the 888 will be replaced in the matrix by the period length of the 3rd period. You must also include the capacity restriction in Table CAPS. Note that this value must account for the sum of the activities of these columns over all days and periods. The resulting matrix structure for equation CCAPPTL1 is as follows: Note that the 888 placeholders have been replaced by the period length values. KeyWords 888 placeholders PPIMS capacity Keywords: None References: None
Problem Statement: :
Solution: The design of the original PIMS crude still architecture was based on the assumption that each atmospheric crude distillation column had its own dedicated vacuum distillation column. That dedicated column would only process the atmospheric tower bottoms of a single crude still. The challenge in the PIMS system is to model vacuum stills that are not dedicated to a single atmospheric unit. There are two approaches to solving this issue. Both solutions involve definition of the vacuum gas oils in the ASSAY table and both solutions require the construction of an external submodel to represent the vacuum tower. KeyWords: vacuum crude still tower applications Applications submodel distributive recursion Keywords: None References: None
Problem Statement: How can I use the PIMS Submodel Calculator to evaluate Crude Units?
Solution: Let's say that you have a crude Unit defined in table CRDDISTL called CD1. When you open the Submodel Calculator and chose submodel CD1, you will not see data. To solve this, you need to create the !SCD1.xls crude unit file; this file is created by PIMS to show the submodel structure of the Crude Units as built from tables ASSAYS, CRDCUTS and CRDDISTL. To create these files, go to Model Settings | General | Miscellaneous and check the CRUDEXLS check box. After you run the model again, you are now able to see the model structure for CD1 in Submodel Calculator and you can import the solution activities. Below is a screenshot of the Submodel Calculator for a Crude Unit. KeyWords Submodel Calculator Keywords: None References: None
Problem Statement: We want to capture the value of property PR1 of material MT1 and transfer that value to a different property, PR2, of the same or different material, MT2.
Solution: A PCALC Analog: Transferring a property value from one material to another, but with a different property name Keywords: None References: None
Problem Statement: The CRDQUAL and CRDPCALC tables, under the Distillation branch of the model tree, are used to identify default qualities for crude streams. Tables CRDQUAL and CRDPCALC are similar to a blending static data table in form and content. Data in these tables will not replace any preexisting data in the ASSAY table. There are some considerations for using Tables CRUDQUAL, CRDPCALC, as well as their interaction with table NEWCUT which are addressed here.
Solution: The way Table CRUDQUAL and CRDPCALC work is as follows: these tables are the last resources for PIMS to retrieve static property data for Crudes whose properties are not provided in Table Assays. So it will take these values if they are not available in table Assays. However, to make these tables work, it is necessary that the I (Inspection) Rows exist in the Assays Tables for the property and the Crude Cut that you want to enter the data in CRDQUAL or CRDPCALC, e.g. to enter SPG for LN1 in CRDQUAL, row ISPGLN1 must exist in table Assays. In case these I Rows do not exist in Table Assays, you have to insert that I Row, e.g. ISPGLN1, in the Assays tables, with no data in it. This is necessary to create placeholders for the property values. The same applies to properties you want to enter in CRDPCALC, and also if you want to enter a property for a cut created in NEWCUT: for example, if cut AR1 is created in NEWCUT, and you want to provide property XYZ through CRDQUAL, you have to insert in the Assays Tables the empty row IXYZAR1, and then the property value in CRDQUAL. KeyWords CRUDQUAL CRDPCALC NEWCUT Properties Keywords: None References: None
Problem Statement: How how can one set up in PIMS a property calculation in which a property of one stream is a linear function of different properties of other streams? In other words, how can one set up the following: (Q1 of XXX) = a*(Q2 of YYY) + b*(Q3 of ZZZ) + c
Solution: Assumptions: ? Stream YYY has property QQ2 recursed. ? Stream ZZZ has property QQ3 recursed. Solution -- please see the attached Excel document: 1. Create a dummy submodel -- we will call this SQ1X. This is referred to as a "dummy" submodel because it exists only to do this calculation. 2. In submodel SQ1X, we will use column names YYY and ZZZ, because these tags already have properties QQ2 and QQ3 associated with them. Please recall that properties in PIMS are associated with 3-character tags. Columns YYY and ZZZ will have their values fixed to 1.0 in SQ1X. 3. Row EQQ2Q1X picks up the QQ2 property of YYY and drives it into column Q2Y. So the activity of column Q2Y will be the QQ2 property value of YYY. 4. Row EQQ3Q1X picks up the QQ3 property of ZZZ and drives it into column Q3Z. So the activity of column Q3Z will be the QQ3 property value of ZZZ. 5. Submodel SQ1X contains recursion structure to recurse property QQ1 for a dummy pool, which we will call XYZ. Column DDD is fixed to 1.0 and exists only to set the value of the dummy pool collector column XYZ. Row RQQ1XYZ implements the calculation (Q1 = a*Q2 of YYY + b*Q3 of ZZZ + c). Column CCC is fixed to 1.0 and represents the constant term in this equation. 6. In Table PCALC, you can transfer the QQ1 property from the dummy pool XYZ to the desired stream XXX. Keywords: References: None
Problem Statement: :
Solution: Companies that engage in selling products manufactured according to specifications sometimes have trouble making that product to the specifications required. They produce off spec product that must be disposed of by the marketing department, or rerun in the process. Many times the marketing department is the only avenue of disposal. In other circumstances, off spec product is produced because the way to bring the product back on spec is politically unacceptable. KeyWords: soft specifications blending applications Applications Keywords: None References: None
Problem Statement: We recently received some interesting questions from a customer about RVP indices for gasoling blending. Our resident blending expert, John Stommel, provided answers that were good enough to share here in the PIMS Knowledge Base. Please read below...
Solution: What exponent (p1)in the formula for calculating RVP index (RVI=RVP^p1)would you suggest? >> We see clients using exponents between 1.0 and 1.25. The selection of correct exponent usually involves "hand blends" or experimental data. Would you use any additional corrections (bonus) for components with very high RVP? >> Normally, no. However this decision is normally made with use of "hand blend" analysis. What about Ethanol? Pure Ethanol vapor pressure is 57 kPa, but its apparent RVP in mixture with nonpolar hydrocarbons rises to 124 kPa. What is your experience? >> The best EtOH RVP blend model [I'm aware of] comes from CARB [California Air Resource Board] ... Find it below, this model has EtOH recipe limits. Please refer to CARB website for details. In the information below, read CARBOB as the "neat" blend [i.e., no EtOH material]. RVP Model RVPFG = 1.446 + 0.961*RVPCARBOB where, RVPFG is the RVP of the finished gasoline, in psi. RVPCARBOB is the RVP of the CARBOB, in psi. Do you have (or know the literature source) where an appropriate experimental plan is described.? >> William E. Morris, late of DuPont, published articles in 1970 through 1990's that may have this information. AspenTech has provided non linear blend model evaluation and selection services. Some of William Morris' publications are listed below: "Reid Vapor Pressure of Hydrocarbon Mixtures," ASTM, December 1975, M.M. Luskin and William E. Morris "Interaction Blending Equations Enhance Reformulated Gasoline Profitability," Oil and Gas Journal, January 17, 1994, William E. Morris KeyWords INDEX RVP Blending Keywords: None References: None
Problem Statement: :
Solution: Many times it is necessary to carry the components of a stream as percentage component qualities. The stream must be "depooled" to get access to the amount of individual components. This chapter details the pooling and depooling of streams containing their composition as qualities. KeyWords: recursion pooling composition depooling applications Applications pooled Keywords: None References: None
Problem Statement: How do I change the name of a report like fullsolution via OLE automation?
Solution: You can manipulate the report names by changing the text values of the corresponding variables. To change the name of the full solution files use the variable "FullSolutionReport" and change its text value as shown below: BOK = iPimsWin.SetStringSetting("FullSolutionReport","NewName") where, BOK is a declared boolean variable, SetStringSetting is a predefined PIMS OLE function as described in the HELP system, FullSolutionReport is the PIMS variable that defines the name of the report, and NewName is the desired name for the report file. Any PIMS TEXT variable can be changed in this way. When you need the variable type and name for a PIMS parameter, look in the database table PMSETTNG. The column KEYWORD contains the variable names and you can see the type by looking at which column contains the variable's value (ie, columns TEXT_VAL, INT_VAL, etc.). KeyWords OLE report PMSETTNG Keywords: None References: None
Problem Statement: :
Solution: There are some situations that cause a change in the normal approach of modeling specification blends. The representation of governmental regulations in an LP model is such a situation. One specific example comes to mind with the reformulated gasoline representation. The regulations are open to interpretation when implemented in the field. The regulations for reformulated gasoline provide for blending gasoline to some specification level for a given volume. If the volume of the gasoline exceeds a certain baseline amount, gasoline of another quality must be made such that the total emissions are not exceeded. The above regulations can be interpreted two ways. The first and most conventional way is to produce a maximum volume of a blend at some quality and represent any additional production above that as another blend with new qualities. The aggregate quality will be the volume average of the two separate blends. The second way to model this is to cause any volume made above a certain amount to change the specification. The specification of the single blend represents the aggregate quality. Thus, a blend specification can be made more constraining as additional volumes above a base level are produced. KeyWords: volume variable specifications blending giveaway Keywords: None References: None
Problem Statement: When running a global model, PIMS generates an error which looks like this: Unable to find or read file D:\ .....\usermodel_out.txt. Where "usermodel" is a PIMS-SI server name (such as Excel file name) and "D:\..." the file location.
Solution: Duing PIMS execution, calls to PIMS-SI create intermediate text files. If the global model detects PIMS-SI calls in a local model but is unable to locate or read these text files, it generates the error above. Here is what you can do Make sure that the Perform Recursion setting under Model Settings in the local model is checked. When not checked, PIMS does not perform recursion and, therefore, skips PIMS-SI calls. Correct any PIMS-SI run error in the local model. Some of the things to be checked are server file name and location, security dongle and license file. KeyWords Keywords: None References: None
Problem Statement: How should we use Table PERCASE?
Solution: Table PERCASE is used to simulate different periods during case stacking. In other words, Table PERCASE creates cases that represent user-defined periods. Table PERCASE is a feature in standard Aspen PIMS, not multi-period Aspen PIMS, or PPIMS. An example is given below: TABLE PERCASE ROWNAMES TEXT CASE LEN A JANUARY 1 31 B FEBRUARY 2 28 C MARCH 3 31 Column ROWNAMES is required. At least one entry must be specified under ROWNAMES. Otherwise the table will be ignored. Entries under ROWNAMES can be either text or numeric. However, mixed data types are not allowed. PIMS checks for data types and issues an error message when mixed types are detected. Only the first character of each entry under ROWNAMES is sent to the database. The rest are ignored. ROWNAMES entries don't have to be unique as seen above. Table PERCASE should be used in conjunction with Table CASE. When only the base case is run, Table PERCASE will be ignored. If there are more cases in Table CASE than in Table PERCASE, the additional cases will run without picking up information from Table PERCASE. See case 4 in the example given below. Table PERCASE results are stored in Table PrPeriod in the database "Results.Mdb". RUNID CASE PERIOD DESC DAYS StartDate StartTime StopDate StopTime P4?H 1 A JANUARY 31 10/17/01 00:00:00 11/17/01 00:00:00 P4?H 2 A FEBRUARY 28 11/17/01 00:00:00 12/15/01 00:00:00 P4?H 3 b MARCH 31 12/15/01 00:00:00 1/15/02 00:00:00 P4?H 4 0 0 KeyWords Keywords: None References: None
Problem Statement: :
Solution: There are situations where a process has its capacity dependent on a quality of the feedstock to it. This is slightly different from the capacity being dependent on the process, such as reforming. In situations where there are quality dependent capacities, the goal is to have PIMS generate a coefficient into a capacity row that can reflect the quality of the feed to the unit. KeyWords: capacities quality capacity applications Applications Keywords: None References: None
Problem Statement: Most PIMS users know about Table GROUPS, but there is often confusion about how to assign the members to the group. For feedstocks, for example, when does one use the GROUP column in Table BUY? When does one list the member materials as columns in Table GROUPS? Please note, the statements made in this tech tip have been verified for single plant PIMS models.
Solution: The short answer is that it depends on the purpose of the group. Is the group being created for the purpose of reporting? For constraining? For both purposes? Grouping Materials for Reporting The most common purpose for defining a group of materials is to display them in a subsection of the Material Purchases or Material Sales report. Figure 1: A simple version of Table GROUPS Figure 1 shows a simple version of Table GROUPS. It contains only three columns: the first or ROWNAMES column that contains the three character tags of the groups, the TEXT column containing the descriptions of the groups, and the optional GROUP column that contains the ordinal identifiers for the groups. This form of Table GROUPS is adequate to define groups for reporting. If the GROUP column is omitted from Table GROUPS, PIMS will assign the group number consecutively. That is, the first row in the table would be group 1 regardless of its row name. Figure 2: Table SELL Figure 2 shows a SELL table. Note the use of the GROUP column in this table. Listed in this column are group numbers that correspond to the groups defined in Table GROUPS. For example, products JET, DSL, and DSX all have the numeral 6 in Column GROUPS. In Figure 1, we see that group number 6 identifies group DST, representing Total Distillates. In the Material Sales report, shown in Figure 3, we see that JET, DSL, and DSX are displayed as a subgrouping and that the Total Distillates sales are summed up and reported. Figure 3: Material Sales Section of FullSolution.htm To define a group for reporting, we declare the group in Table GROUPS, then assign the constituent materials via the GROUP column in Tables BUY and SELL. PIMS will then display the groups as subsections of the Material Purchases and Material Sales sections of the reports. Utilities can be grouped in a similar way in Tables UTILBUY and UTILSEL. Grouping Materials for Constraining We can also define groups of materials for the purposes of imposing constraints. Suppose, for example, that we want to impose limits on the aggregate amounts of high-sulfur and low-sulfur crudes that we buy, in addition to the limits on individual crudes. Figure 4: Extended version of Table GROUPS Figure 4 shows an extended version of Table GROUPS. This contains the same group names as in Figure 1, but there are material tags listed as column names. These materials are assigned to the groups by placing a "1" at the intersection of the group row and the material column. Note the group SWT, Sweet Crude Mix, that includes materials ANS, NSF, and TJL. Materials ARL, AHV and BAC comprise the group SOR, Sour Crude Mix. Figure 5: Table BUY Figure 5 shows a BUY table. This BUY table contains a GROUP column, as in the SELL table of Figure 2. This column defines groups for the purpose of reporting, as described above. But note also that SWT and SOR are listed in this BUY table and have MIN and MAX limits defined for them. These are not individual crudes, and no costs are associated with SWT or SOR. They are the Sweet Crude Mix and Sour Crude Mix groups, definied in the BUY table in Figure 4. So, for the Sweet Crude Mix SWT, the model can buy between 0 and 40,000 barrels per day. There are still individual limits on the individual sweet crudes ANS, NSF, and TJL. Because the constituent materials are assigned to the groups in Table GROUPS, we can define constraints on the group in Table BUY. In a similar manner, we can define groups in Table GROUPS, assign the member materials within Table GROUPS, then use the group names to define constraints in Tables BUY, SELL, BLNSPEC, and PINV. Figure 6: Group Purchases Section of FullSolution.htm In the new reporting formats, the HTML reports (e.g., FullSolution.htm) and the text reports (e.g., FullSolution.txt), there are two new sections called Group Purchases and Group Sales. These will display the groups that have purchase or sales limits defined for them, as described above. Figure 6 shows a Group Purchases report. Summary If we wish to define a group for reporting, we define the group in Table GROUPS and assign the constituent materials to each group via the GROUP column in Tables BUY and SELL. Utilities can be grouped in a similar way in Tables UTILBUY and UTILSEL. If we wish to define a group for constraining, we define the group in Table GROUPS and assign the constituent materials to each group via additional columns in that table (see Figure 4). We can then use the group tags to define constraints in Tables BUY, SELL, BLNSPEC, and PINV. If we wish to define a group for both purposes -- reporting and constraining -- then the constituent tags must be assigned to the groups in Table GROUPS and in Tables BUY and SELL. KeyWords GROUP GROUPS BUY SELL Keywords: None References: None
Problem Statement: Aspen PIMS ???I?u?????h? ?U?? Aspen PIMS ?I?>?e?c???\?S???[?V?????t?@?C???I?????C?I?????E???|?[?g???e???B
Solution: Aspen PIMS?I?u?????h?BLNSPEC?E?e?`?????a?e?E???????A?A?vZZ???e?BRVP??RVI???a?E???e?B?a?????[?U?[??XRVI (MAX RVP index spec)?I?????E?C???f?b?N?X?Aspen PIMS?I?C???f?b?N?X?RVI??RVP?I???u?????|?[?g???e?B??????RVP?IRVI?C???f?b?N?X???c?vZZ???e?e?B?@?a?????[?U?[??XRVP (MAX RVP spec)???e?`?????e??Aspen PIMS?IRVP???X?y?b?N?????AZg?p???ARVP?I?Y?????|?[?g???e?B?@?a??RVI??RVP?I???u???X?y?b?N?????A?e?`???e???e??Aspen PIMS?IRVI??RVP?I???u???X?y?b?N?????A???p???A?u?????h??I?U?U???u?????|?[?g???e?B ?????EVolume Sample model???c?>?iURG??Zg?p?????a??Z|???B Example 1: Spec XRVI =15.6 * TABLE BLNSPEC * Blended Product Specifications TEXT URG XRVI RVP Index 15.6 ?E???I?\?S???[?V???????|?[?g?I?e????? ?e?BAspen PIMS?IRVI??RVP?I???u?????|?[?g???e?BRVP?IRVI?C???f?b?N?X???c?vZZ???e?e?B Product Qualities Minimum Product Maximum Marg Val $/Unit/BBLS RVP* RVP Index 9.0000 9.0000 0.258 RVI Vapor Pressure Index 15.5885 15.5885 0.119 *Quality calculated from blend index Example 2: Spec XRVP = 9.0 * TABLE BLNSPEC * Blended Product Specifications TEXT URG XRVP RVP Index 9 Aspen PIMS?IXRVP???X?y?b?N?????AZg?p???ARVP?I?Y?????|?[?g???e Product Qualities Minimum Product Maximum Marg Val $/Unit/BBLS RVP RVP Index 6.6936 9.0000 Example 3: Spec XRVP = 6, and XRVI=15.6 * TABLE BLNSPEC * Blended Product Specifications TEXT URG XRVP RVP Index 6 XRVI RVP Index 15.6 Aspen PIMS?IRVI??RVP?I???u???X?y?b?N?????A???p???A???u?????|?[?g???e?B???|?[?g?E?\Z|???e?A???e?????EURG?IRVP (6.0) and RVI (14.18)?I?C???f?b?N?X?I?e?`(RVI=RVP^1.25)???e?v???E????????? ?e?B???I???R?I?>?e???e?I??I?U?U?vZZ???e?e??????? ?e?B Product Qualities Minimum Product Maximum Marg Val $/Unit/BBLS RVP RVP Index 6.0000 6.0000 0.332 RVI Vapor Pressure Index 14.1828 15.6000 Keywords: property index specification blend spec JP- References: None
Problem Statement: PIMS generates Process Submodel Summary Report for Crude Distillation Units (e.g. SCR1, SCR2). The utility consumption in that report is sum of atmospheric and vacuum units. Can Aspen PIMS generate separate utility consumption for CDU and VDU?
Solution: PIMS can generate separate reporting for CDU and VDU separately in Full Solution Report. REPORTnn rows in table CRDDISTL will generate additional reports in Process Submodel Summary. Please look at the example as follows. * TABLE CRDDISTL * Crude Distillation Map TEXT CD1 CD2 CD3 * * ATMOS & VAC TOWER MAP: ATMTWR Physical Atm Tower 1 2 2 VACTWR Physical Vac Tower 1 2 1 * REPORT01 Physical Atm No1 1 REPORT02 Physical Atm No2 1 1 REPORT03 Physical Vac No1 2 2 REPORT04 Physical Vac No2 2 * The value in REPORTnn means as follows, 1 -- Atmospheric tower only 2 -- Vacuum tower only 3 -- Combined Keywords: Crude Distillation CRDDISTL References: None
Problem Statement: In a feasible solution of a PPIMS (or MPIMS) model, some period-closing inventories appear to be violating specified MIN or MAX. This can occur when modeling volume-based inventories in a weight-based model.
Solution: The apparent inventory bound violations are an artifact of using volume-based inventories with a weight-based model. Suppose we are working with a weight-based model. In this model, we have a material, MTL, that is inventoried on a volume basis. The entry for MATL in Table PINV would be like the following: MIN MAX VOL MTL 10 100 1 At a feasible solution, PIMS may report a period closing inventory for MTL of less than 10 or greater than 100. How can an inventory bound be violated in a feaible solution? The presence of 1 in the VOL column indicates that this material is to be inventoried on a volume basis. However, because the model is weight based, these bounds must be converted from volume units to weight units. This is done at matrix generation time, using the value of SPG for this material that is found in PGUESS. After solution, at reporting time, the period-closing inventories are converted to volume units using the converged value of SPG. The problem is that if the converged value of SPG differs significantly from the initial guess, then the reported, volume-based inventories will appear to violate the bounds that were specified in Table PINV. The only workarounds that we can suggest are (1) use a better initial guess for the SPG, which is easier said than done, or (2) model the inventories on the same basis (weight, in this case) as the model. The best approach to this problem is to understand the cause and appreciate that inventories in a planning model will be approximate. KeyWords PPIMS MPIMS VOL volume weight SPG PINV Keywords: None References: None
Problem Statement: :
Solution: Many times it is desirable to be able to calculate one stream quality from another stream quality in your model. If the formula relationship is known there is a high probability that the relationship can be modeled using PIMS Distributive Recursion technology and automatic property propagation technology. KeyWords: quality qualities applications Applications recursion distributive pcalc PCALC Keywords: None References: None
Problem Statement: :
Solution: When the simplex procedure is used to solve the linear programming matrix, there is additional economic information available that may be of interest. The most obvious of the information are the shadow prices (Pi values) that appear with the constraints (equations) or rows of the solved model. These "shadow prices" represent the change in the objective function value of the model for small changes in the right-hand-side of the respective limiting model equation. The equation must be limiting or there will be no shadow price. The Pi value basically represents the incentive for relaxing the respective constraint. Unfortunately, one is unable to determine the size of the change in the constraint over which the displayed objective function value change will apply. It could be extremely small or extremely large. When a constraint is changed to an amount that causes a change in the status of another constraint of the model, the shadow price on the original constraint is no longer valid. When there is a change in the status of another constraint, that change is defined as a basis change. A basis is the set of rows and columns that comprise the current solution. Three post optimal reports are available from PIMS. The reports are a Right-hand-side Range Report, a Cost Range Report, and a Trancol report. KeyWords: trancol range post optimal tableau shadow price applications Applications Keywords: None References: None