Skip to content

olivierjuanedf/PlanningElectricalSystem

Repository files navigation

Class Title

Requirements

  • a Github account: If not the case, go https://github.com/ and sign up
  • enroll the classroom as a student: go ==missing url== step 1n, enrolling
  • Click to accept the assignment

Setup

Preferred: Run remotely with Github Codespaces

Start your Codespace (an online vscode running in github infrastructures) step 2, starting your codespace

Your Codespace is configuring... Please wait step 3, building your codespace

Your Codespace is ready, you can open the python file example and run it step 4, ready

Unsupported (almost): Run locally

Help me, I really really want to run it locally

blue pill or red pill ? blue pill or red pill

Are you sure you want to choose the red pill over the blue pill?

Yes, I'm sure

You have to install Python and Pycharm

Python

Install a compatible Python version from 3.9 to 3.12, avoid 3.13 and versions older than 3.9

On windows

Either:

winget install Python.Python.3.12

or download and install https://www.python.org/ftp/python/3.12.7/python-3.12.7-amd64.exe

On a mac

If you have Homebrew installed:

brew install python@3.12

or download and install https://www.python.org/ftp/python/3.12.7/python-3.12.7-macos11.pkg

On linux

Hopefully if you use a linux machine, it means you're autonomous

Pycharm

Install the last version of Pycharm Community

On windows

Either:

winget install JetBrains.PyCharm.Community

or download and install https://download.jetbrains.com/python/pycharm-community-2024.2.3.exe

On a mac

If you have Homebrew installed:

brew install --cask pycharm-ce

or download and install https://download.jetbrains.com/python/pycharm-community-2024.2.3.dmg

On linux

download and install https://download.jetbrains.com/python/pycharm-community-2024.2.3.tar.gz

Setting up Pycharm

TO COME

Performance Improvement for students and Academics: install gurobi

Details

now in your python script replace

result = network.optimize(solver_name="highs")

with

import os
os.environ['GRB_LICENSE_FILE'] = os.path.join(os.path.dirname(__file__), 'gurobi.lic')
result = network.optimize(solver_name="gurobi")

Hopefully it should work

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages