PLEXOS Cloud Integration with PLEXOS Desktop

In this article

Introduction

PLEXOS Desktop introduces a new PLEXOS Cloud Integration in version 9.1 R03. The Cloud Integration seamlessly integrates PLEXOS Desktop and PLEXOS Cloud for key workflows and reduces dependence on the PLEXOS Cloud Bridge application. PLEXOS users will notice a Sign In button in the PLEXOS Desktop title bar and a Cloud button in the ribbon. Users who do not yet have access to PLEXOS Cloud will experience no other differences in PLEXOS Desktop.

 

Features

The PLEXOS Desktop 9.1 R03 and up embeds key PLEXOS Cloud actions directly in the PLEXOS Desktop interface. It will allow you to execute key PLEXOS Cloud functions from PLEXOS Desktop. Currently, the following functions are supported for version 9.1 R03:


Downloading and Installing PLEXOS Desktop

To successfully run & perform the activities in the PLEXOS Desktop, you must install PLEXOS 9.1 R03 or later and download and install the PLEXOS Cloud Toolkit (CLI). The PLEXOS Cloud Toolkit is required for the integration to work.

Overview of steps to set up the integration:

  1. Install PLEXOS 9.1 R03 or later
  2. Install the PLEXOS Cloud Toolkit (CLI) from PLEXOS Cloud
  3. Set the Windows environment variables for the PLEXOS Cloud Toolkit (CLI)
  4. Login to PLEXOS Cloud from PLEXOS desktop


Installing PLEXOS 9.1 R03 or Later

Download and install PLEXOS 9.1 R03 from https://portal.energyexemplar.com/ 

Installing the PLEXOS Cloud Toolkit (CLI) from PLEXOS Cloud

PLEXOS Desktop uses the PLEXOS Cloud Toolkit (also known as the PLEXOS Cloud Command Line Interface or CLI) for communication with the cloud. This Toolkit is also useful for integration and automation activities. It is easy to use and does not require programming experience. Learn More about Introduction to PLEXOS Cloud CLI.

Follow the steps below to download and install the CLI:
 

1. Login to PLEXOS Cloud

2. Click on your Username.

3. Select TOOLS.

4. Click on the download button for PLEXOS Cloud Toolkit.

             

5. After the PLEXOS-Cloud-Cli.msi file is downloaded successfully, Double-click the downloaded file to start the default per-user installation process. If you need to perform a per-machine installation you can do that via a command line, see the section below on Installing the PLEXOS-Cloud-Cli.msi via the command line.


6. Note the location where the installation was done (the directory on your machine).

7. Follow the prompts in the installer to complete the installation.

8. In Windows Explorer navigate to the directory where you installed the CLI. Copy (Ctrl + C) the path to that directory. You will use this in the next step.


NOTE: Users are recommended to enable the CLI Settings checkbox shown below to receive the update for the latest CLI version after PLEXOS Launch:


Setting the Windows Environment Variables for the PLEXOS Cloud Toolkit (CLI)

PLEXOS triggers the CLI to run commands in PLEXOS Cloud. A Windows environment variable, the Path, needs to be set to allow PLEXOS to trigger those CLI commands regardless of the install location on your machine. To do this you need to set the Path Environment Variable.
 

1. From the Windows Search bar enter "Settings" to open the Windows Settings screen. Alternatively, you can go to Windows Explorer, right click and click Properties.

2. On the Settings screen enter "environment variables" in the Settings Search and select Edit the system environment variables.

 

3. A System Properties dialog will appear, click on the Environment Variables button. 

4. From the Environment Variables screen, select Path from the User Variables section and click Edit. Alternatively, if multiple users leverage the same machine you can edit the System Variable for Path below.


5. Click New to create environment variable.


6. Paste the path where you installed the CLI from the previous major step, then Click OK.


7. Click OK to exit out of the Windows Settings screen.

8. You can test that this worked by opening a Command Prompt and entering "plexos-cloud". If you get an error such as "plexos-cloud is not recognized as an internal or external command" you need to follow the steps above again. If you get an error related to your PLEXOS Cloud environment not being set, learn more in the linked article: Introduction to PLEXOS Cloud CLI.

 

Logging into PLEXOS Cloud from PLEXOS Desktop

1. After installing PLEXOS Desktop and the PLEXOS Cloud toolkit (CLI), open PLEXOS Desktop version 9.1 R03 or above.

2. Click the Sign In button at the top right of the screen.
 

a.  If you don't see your name or the Cloud icon is disabled, uninstall the PLEXOS Cloud CLI (PLEXOS Cloud Toolkit) and re-install using the steps below to resolve the issue:
 

Note: The below steps should be performed by an Admin User only to provide access to other users who do not have admin rights and want to use the PLEXOS Desktop to Cloud Integration.

b.  See the Install the PLEXOS Cloud Toolkit (CLI) from PLEXOS Cloud heading above for Download and Installation steps and continue below steps after step 5.

c.  In the Destination Folder dialog, while installing PLEXOS Cloud CLI, change the folder path to Program Files Folder (Recommended) or to a folder where every user has access to it (Public).

For example, C:\ProgramFiles\

d.  Create a .txt file in the folder (plexos-cloud-location.txt) and paste the file path of the installed plexos-cloud.exe in the .txt file.
 

e.  Copy the .txt file and paste it into the other users (who do not have admin access) directory at C:\Users\Username\EnergyExemplar
 

f.  A non-admin user can now open the PLEXOS Desktop to Cloud integration (9.1 R03 and above) and Load a Study to successfully see the changes.
 


3. Select the required environment from the list. The environment is the region where your PLEXOS Cloud environment is hosted. You can validate this from the URL you use to login- North America (NA), Europe (EU), Australia (AU). The Other is for Energy Exemplar employees.

NOTE: The PLEXOS Cloud Sign-In panel may show up on the left side of the screen, just Pin the panel so it will stay on the right side of the screen. 

      


4. Click on the Sign In button to get redirected to the PLEXOS Cloud Sign In page. Enter the your email and click on the CONTINUE button.

      

 

5.  If your email has access to multiple tenants within a single environment, you will get redirected to the Select a tenant to continue page. Users who belong to a single tenant will be logged in to their respective tenant without being prompted to select a tenant. 


6.  By default, the Primary Tenant is selected but you can select the desired Tenant from the list and click on the CONTINUE button.

 

NOTE: When an Admin creates a user and assigns their initial tenant, it will be designated as the Primary Tenant. The user will only see the "Primary" tag associated with this tenant's name. 

 

      

7. After successful authentication, you will get logged in for the selected tenant. You are now ready to use PLEXOS and PLEXOS Cloud together.

 

NOTE: After you Sign In successfully, your name will display in place of the Sign In button in the upper right section of the screen.

 

8.  If a user needs to change the tenant after logging in to the PLEXOS Desktop, they can either change the tenant from PLEXOS Cloud (without Signing out) or can sign out and sign in again within PLEXOS Desktop, to access the tenant selection page.


PLEXOS Desktop Welcome Window

 The Welcome Window in PLEXOS Desktop is designed to identify and show a list of all the PLEXOS Cloud Studies and downloaded Solutions on the local machine. Users can click on the Study name to open that Study in PLEXOS Cloud directly. The Welcome Window provides users instant access to the following features:

 

 

 

The Welcome window provides a more user-friendly experience on start-up and a convenient way to get started with a new or existing database, either locally or on PLEXOS Cloud.



 

Learn more about the things you can do in the Welcome Window.

 

Browsing Cloud and Clone Study in Desktop

The Clone to Desktop functionality in PLEXOS Desktop allows users to add a PLEXOS Cloud study to their local machine for editing. PLEXOS Desktop users can browse all the available studies on PLEXOS Cloud that have been shared with them and Clone a local copy of a Study to their PC to start collaborating on the Study in PLEXOS Desktop with integrated version management features. Follow the steps below to Clone a Study from PLEXOS Cloud to Desktop:

NOTE: The Clone to Desktop Study feature is available with PLEXOS Desktop 9.2 R05 and above.

1.  Navigate to PLEXOS Desktop > Welcome Window > Open an Existing Database panel > Cloud tab > Kebab menu for the desired Cloud Study > Clone to Desktop option.



2.  A Clone Study pop-up displays with the following caution message (Before selecting a folder to clone the Study):

“For better results, avoid saving to shared drives or OneDrive. Please choose a local drive to prevent potential sync issues.”

      

If you proceed and select a folder within OneDrive or a shared drive, the caution changes to a warning message as follows:

“It looks like the selected drive is OneDrive. Cloning studies from Cloud to OneDrive may result in sync issues and other unexpected errors. Please select a local drive before cloning to avoid any issues.”

      

This warning disables the Clone to Desktop button, requiring you to select a local drive before proceeding.


3.  Select the destination folder where you want to store the Study.

4.  The Study Cloning process will start. This process may take several minutes, depending on the size of the Study, and the progress is indicated in the Application Status Bar at the bottom left of the screen.

5.  After cloning is complete, the cloned Study will open automatically on PLEXOS Desktop as shown below:

      


Saving a Study to PLEXOS Cloud

A PLEXOS database that has been saved to PLEXOS Cloud is known as a Study. The following video covers the process of uploading (saving) a Study to PLEXOS Cloud from PLEXOS Desktop:

 

 

 

1. Click the Open button to browse and open a local PLEXOS database.
 
NOTE: Cloud Study doesn't upload .txt files. Only .csv files are supported on the cloud. If your .txt files contain comma-separated values, you could simply rename the files to .csv extension. Another option is to open the .txt in Excel by setting the right delimiter, and then Save As the file into .csv format.
 
2. Check the Status of your Study,  in the bottom left corner of the screen. If the local database has not been saved or synced to PLEXOS Cloud it will show an Offline state.

NOTE: It is best practice to have every XML Study stored in its own folder from which you are uploading your study to Cloud.

NOTE: Using network drives are not supported for syncing with PLEXOS

Cloud. Network drives perform much slower than local drives. Additionally sharing a study on a network drive among multiple users for collaboration purposes will cause conflicts with versioning.

 

3.  Known Limitations for Saving Study from PLEXOS Desktop to PLEXOS Cloud are as follows:

 

 

4. Click on the Save dropdown and select the Save Study to PLEXOS Cloud option. It will upload your Study to PLEXOS Cloud.


NOTE: Before you save a Study to the PLEXOS Cloud, you will see a warning pop-up as shown below. Also, you can edit the Study Name per your requirement in this pop-up:


A. Caution Messages for New Study Saved on Shared Drive or One Drive

You will notice a caution message if the Study is currently saved on a Shared drive or OneDrive. In this scenario, the Create Study on Cloud button remains enabled but prompts you to move the Study to a local drive if it is saved on a Network or Shared Drive to prevent possible issues. Refer to the following caution message:

“If the Study is saved on a Shared drive or OneDrive, uploading it to the cloud may cause sync issues and other unexpected errors. To avoid potential problems, ensure the Study is saved on a local drive before uploading.”

 

B.  Warning Message for New Study Saved on OneDrive or Shared Drive

If the Study is saved on any OneDrive or Shared Drive folder, the following warning message displays. This warning disables the Create Study on Cloud button, requiring you to select a local drive before proceeding.

“It looks like this study is located on OneDrive. Uploading studies from OneDrive to the cloud may result in sync issues and other unexpected errors. Please move the study to a local drive before uploading to avoid any issues.”





C.  Warning Message for Uploading Studies to Cloud

If you attempt to upload a Study to PLEXOS Cloud that is saved on OneDrive or a shared drive via the path: Save dropdown > Save Study to PLEXOS Cloud option, a warning message will appear to prevent the upload.This warning disables the Create button until the study is moved to a local drive.

“It looks like the Study is located on a shared drive. Uploading studies from shared drives to the cloud may result in sync issues and other unexpected errors. Please move the study to a local drive before uploading to avoid any issues.”



5.  Click on the Create button to start uploading a Study.
 
6.  Upon successful Save Study to PLEXOS Cloud operation, you will notice a Windows notification at the bottom right of your screen. This notification will be visible regardless of whether you are in the same tab, a different tab, or another application.

 

 

7.  If the upload fails, an error message will appear at the bottom left of the desktop interface, with an option to open the CLI Logs.

 

NOTE: You can view the status of the Study upload in the bottom left corner of the screen. Refer the table shown below to understand different status and its description:


 
Status
Description
Local Study
The Study is in Offline state
Cloud Study
The Study is in Online state
Out of Sync
The Study is Out of Sync state

8. After the Study is successfully uploaded, the status icon will turn into a green cloud  

9.  You will be re-directed to the Overview page in the PLEXOS Cloud with the uploaded Study selected automatically.
10. If the Study upload failed, you will see an error message stating, "There was an error while performing a cloud operation" in the status bar.

11. In this case you can check the CLI Logs to view the error details at this location:   C:\Users\Username\AppData\Local\PLEXOS Cloud\Logs.
 

Syncing a Study

1. Click on the Cloud buttonthe  from the menu ribbon and select Sync Study.
2. It will allow you to check current Study status of local vs cloud version.
3. If the Cloud version is newer it will download and merge those changes. If the local (desktop) version is newer it will upload those changes.
4. All versions are tracked and shown in Version History in PLEXOS Cloud. To view the Version History click the Cloud button and select View Study in Cloud.


Viewing a Study in PLEXOS Cloud

To view your Study in PLEXOS Cloud:
1. Click on the Cloud button from the ribbon and select View Study in Cloud.

2. The selected Study will open in a new browser tab displaying the Study Overview page in PLEXOS Cloud.
3. The Study Overview page shows a high-level view of the Models, the privacy and membership settings and the Version History. The Version History shows a list of all changes for the Study by all users.

NOTE: There should be one Study under one folder. You cannot have two or more Studies in one folder as it causes some operation on the Study to work improperly.
 

Repair Study in the PLEXOS Desktop

The Repair Study option enables users to define a new path where the Study exists. This allows users to continue working with Local Studies without the need for manual deletion and download. It effectively resolves corruption issues in Study data files or situations where the folder of a Cloud Study was modified or renamed. 

Users can easily identify Studies requiring repair by observing a red dot on the Study icon within the Open an Existing Database panel in the Welcome Window.

 

 

 

Welcome Window

Follow the steps mentioned below to repair a Study that has a red dot on the Study icon within the Open an Existing Database panel in the Welcome Window: 

 

  1. To repair this Study, click on the kebab menu next to the Study name.

  2. Click on the Repair option.
  3. A window opens on your machine that allows you to select and open the Study from the path where the Study is available now.  



    -OR-
  4. If you click on the Study Name and the File not found error dialog appears as shown below. Click on the Repair option to continue.



  5. The Repairing process starts, and the status will be shown at the bottom left of the PLEXOS Desktop interface.


     
  6. After the Study is repaired successfully, the status gets changed to Success and the red dot on the Study icon will be disabled.



    NOTE: If the Study doesn’t repair, delete the Study from your machine and Clone the same Study from PLEXOS Cloud using the Cloud tab.

 


Cloud Dropdown

Follow the steps below to repair the Study, when you open a Study directly from the Open dropdown in the PLEXOS Desktop and notice the Study repair error:

 

  1. Open the Study in PLEXOS Desktop that needs a repair.
  2. An error message, This Study needs repair appears at the bottom left of the interface as shown below:  

  3. Click on the Cloud dropdown and select the Repair Study option.

  4. The Study Repair process starts and after successful Repair, the below-shown dialog appears along with the success status at the bottom left of the interface:


Viewing Completed Simulation Logs

Click on the Cloud button from the menu and select View Integration Logs to view and edit simulation logs in Notepad.


Viewing Version History in PLEXOS Cloud

1.  Click on the Cloud button from the menu and select View Version History.


2. It will re-direct you to the Version History page of the PLEXOS Cloud with the Study selected. You can track the changes made to the Study in the past.



Viewing Version History on PLEXOS Desktop

With the 10.0 R02 release of PLEXOS Desktop, users can access and manage the Version History and Simulation data for their Cloud Studies directly from PLEXOS Desktop. The Version History panel provides a dedicated side panel for Study Version Management, offering users a clear overview of the Study's current status and its change history. The Version History is shown in a timeline, providing users with visibility of the project's history. Users can conveniently pin the side panel to the PLEXOS display, ensuring it remains visible during editing sessions, enabling seamless Push of changes as they work, and being notified when collaborators on Cloud have made new changes.

 

NOTE: When a Study is Cloned from PLEXOS Cloud, all the Versions of that Study are grouped into one version and are shown as Initial Commit in the Desktop Version History panel.

 

Version History tab

Follow the steps below to View and Manage Study Versions in PLEXOS Desktop:

 
 

Simulations tab

The Simulations tab allows users to view Simulation lists and download Solutions or Solution Log Files directly from the PLEXOS Desktop. The Simulations tab provides easy access to Simulation-related data in one place and a Refresh button to fetch the updated Simulation data. It includes the following columns to provide users with all the Simulation information for the currently selected Study:

 

 

 

 

 

View the Solution List and Download/View Solutions in PLEXOS Cloud  

1. Open the desired Study in PLEXOS Desktop, navigate to Simulation and select the required Model.
2. All the Solutions available under that Model will display on the right-hand pane of the screen.

 
3. Click  icon to download the Solution File. Upon successful download of the Solution File, users will notice a Windows pop-up at the bottom-right of the screen regardless of whether they are in the same tab, a different tab, or another application. This is helpful when a user initiates the Download Solution process for a large Solution that takes  time to download, allowing them to continue with other tasks until the download is complete. This notification will proactively inform you of the successful completion of the Solution Download process.

4. Click  icon to launch the Solution in PLEXOS Cloud. This allows you to evaluate the output using map-based visualizations, Solution Reports, Congestion Analysis, and other tools not available in the desktop.

Run and Configure Model

1. Find a Model for your Study that you want to Execute or Run and Right-click on it.
 
2. Select the Execute in Cloud option.

 
3. It will prompt you to select Run Model or Configure on the right-hand pane of the screen.

 
a. Run Model: Click Run Model to automatically use the previous run configuration for the selected Run.
 
b. Configure: Click Configure to redirect you to the Run Configuration page in PLEXOS Cloud (in a browser), where you can select the required configuration for your Model. If this is the first time you are running the Model in PLEXOS Cloud it will automatically open the browser and take you to PLEXOS Cloud.
4. Once in PLEXOS Cloud, click the Run button for your select Model and define the run settings.
 

Viewing a Model in PLEXOS Cloud

1. Right-click on the model from your Study for which you want to view Model settings, compare scenarios, or edit data.

 
2. The selected Model will open in PLEXOS Cloud for you to view. Here you view, edit, and compare Model settings, set up a Run, and more.

Execute multiple Simulations from the Execute window

To Execute multiple Simulation from PLEXOS Desktop to PLEXOS Cloud in one click,

1.  Click on the Execute button in the PLEXOS Desktop window menu ribbon.



2.  You can see the list of Models in the Models and Projects pane (on the left-side of the screen). Select the desired Models and click on Add button to move them to Models and Projects selected for next Execution pane (on the right-side the screen).



3.  Click the Execute in Cloud button to execute the selected models in the PLEXOS Cloud.
 

      a.  If any of the selected Models has previous successful run, your Simulation will be queued for all selected Models based on previous run recommended machine configuration.
 

       b.  If none of the selected Model have successful run before, you will be re-directed to the PLEXOS Cloud Run Configuration pane. where you need to configure and run the simulation.


NOTE: If the selected Study is Out of Sync with the PLEXOS Cloud, you will see a dialog stating, “The Study <StudyName> is out of sync with PLEXOS Cloud. Would you like to sync the Study with PLEXOS Cloud before running the simulation?”



4.  You will be re-directed to the PLEXOS Cloud Run Configuration panel. Select the desired configuration for your run and click the Run Model button.



5.  Your run will be queued, and you can see the status of your run in the Solutions tab.

 

Installing the PLEXOS-Cloud-Cli.msi via command line

This is only required if you do not want to install the CLI via the normal MSI installer or need to install it for the machine and not for the user.

1.  After the PLEXOS-Cloud-Cli.msi file is downloaded successfully, open cmd or terminal preview and change the current directory to the root directory of the downloaded msi file by executing the following commands: cd <downloaded msi file path> 


2. Use the applicable command to choose the installation type as below:


3. Wait for the installer to complete the installation. The installation wizard will walk you through the installation process.
 

NOTE: Very large uploads can experience performance issues during the initial upload or creation of a study in PLEXOS Cloud. This is because larger files require more time to upload and the process can strain the system's resources. To avoid such situations files above 10 GB are not supported by PLEXOS Cloud, attempting to upload them is likely to fail.

 

Troubleshooting PLEXOS Desktop (Log Files)

The new centralized log collection feature consolidates essential log files and configuration data into a single, user-defined location on your machine to streamline diagnostics and support for the PLEXOS Desktop. This enhancement simplifies log management and facilitates ease of access and share for support resolution.

Previously scattered across multiple directories, log files for PLEXOS Desktop, Central License Manager, and CLI are now automatically stored in a single, user defined folder, making retrieval straightforward.
       

To define the destination folder for centralized log collection, run the following command in Command Prompt:

     pxc environment diagnostic-information -d "Folder path where the Log Files will be stored"

Upon completion, a confirmation message will appear. Logs are saved in the "PLEXOS-Logs-<Date of Collection>" folder for easy access.