Use Case: Julia Programming Language for Artificial Intelligence

Loading
loading...

Use Case: Julia Programming Language for Artificial Intelligence

August 28, 2024
mike@standardsmichigan.com
, ,
No Comments

Julia is a programming language that has gained popularity in the field of artificial intelligence (AI) and scientific computing for several reasons.

High Performance: Julia is designed to be a high-performance language, often compared to languages like C and Fortran. It achieves this performance through just-in-time (JIT) compilation, allowing it to execute code at speeds close to statically compiled languages. This makes Julia well-suited for computationally intensive AI tasks such as numerical simulations and deep learning.

Ease of Use: Julia is designed with a clean and expressive syntax that is easy to read and write. It feels similar to other high-level languages like Python, making it accessible to developers with a background in Python or other scripting languages.

Multiple Dispatch: Julia’s multiple dispatch system allows functions to be specialized on the types of all their arguments, leading to more generic and efficient code. This feature is particularly useful when dealing with complex data types and polymorphic behavior, which is common in AI and scientific computing.

Rich Ecosystem: Julia has a growing ecosystem of packages and libraries for AI and scientific computing. Libraries like Flux.jl for deep learning, MLJ.jl for machine learning, and DifferentialEquations.jl for solving differential equations make it a powerful choice for AI researchers and practitioners.

Interoperability: Julia offers excellent interoperability with other languages, such as Python, C, and Fortran. This means you can leverage existing code written in these languages and seamlessly integrate it into your Julia AI projects.

Open Source: Julia is an open-source language, which means it is freely available and has an active community of developers and users. This makes it easy to find resources, documentation, and community support for your AI projects.

Parallel and Distributed Computing: Julia has built-in support for parallel and distributed computing, making it well-suited for tasks that require scaling across multiple cores or distributed computing clusters. This is beneficial for large-scale AI projects and simulations.

Interactive Development: Julia’s REPL (Read-Eval-Print Loop) and notebook support make it an excellent choice for interactive data analysis and experimentation, which are common in AI research and development.

While Julia has many advantages for AI applications, it’s important to note that its popularity and ecosystem continue to grow, so some specialized AI libraries or tools may still be more mature in other languages like Python. Therefore, the choice of programming language should also consider the specific requirements and constraints of your AI project, as well as the availability of libraries and expertise in your development team.

We present a use case below:

Université Sorbonne Paris Nord

A Julia Module for Polynomial Optimization with Complex Variables applied to Optimal Power Flow

 

Julie Sliwak – Lucas Létocart | Université Sorbonne Paris Nord

Manuel Ruiz | RTE R&D, Paris La Défense

Miguel F. Anjos | University of Edinburgh

 

ABSTRACT.  Many optimization problems in power transmission networks can be formulated as polynomial problems with complex variables. A polynomial optimization problem with complex variables consists in optimizing a real-valued polynomial whose variables and coefficients are complex numbers subject to some complex polynomial equality or inequality constraints. These problems are usually directly expressed with real variables. In this work, we propose a Julia module allowing the representation of polynomial problems in their original complex formulation. This module is applied to power system optimization and its generic design enables the description of several variants of power system problems. Results for the Optimal Power Flow in Alternating Current problem and for the Preventive-Security Constrained Optimal Power Flow problem are presented.

University of Edinburg

CLICK HERE to order complete paper


Iced Americano

August 26, 2024
mike@standardsmichigan.com

No Comments

Michigan Central | Michigan West | Michigan Upper Peninsula | Michigan East

Bert Askwith worked his way through college shuttling students to and from Detroit Metropolitan Airport until his graduation in 1931; when two semester tuition cost $300.  With no student debt he founded and grew Campus Coach Lines that still provides the same services at many other US campuses.  He donated part of his fortune to establish a cafe in the Undergraduate Library; which now serves an expanding and bewildering catalog of caffeine-based drinks found in educational settlements worldwide.


Kitchenettes

Notre Dame in Ireland: Chef David’s Scones

August 26, 2024
mike@standardsmichigan.com
, , , , ,
No Comments

“…I have spread my dreams under your feet;

Tread softly because you tread on my dreams.”

–W.B. Yeats | ‘He Wishes for the Cloths of Heaven’

The history of scones is believed to have originated in Scotland. The name “scone” is said to come from the Dutch word “schoonbrot,” which means “beautiful bread.” Scones have a long and interesting history that dates back several centuries.

Originally, scones were not the sweet, buttery treats we know today. Instead, they were simple unleavened oatcakes or griddle cakes made from barley, oats, or wheat. These early scones were baked on griddles or stovetops rather than being oven-baked.

As time went on, the recipe for scones evolved, and they became more commonly associated with Scotland and England. The Scottish version of scones was typically round and made with oats. They were cooked on a griddle or in a pan and then cut into triangular sections, which were known as “bannocks.” These bannocks were the ancestors of the modern scone.

In the 19th century, with the advent of baking powder and modern ovens, scones began to be baked instead of griddle-cooked. The addition of baking powder allowed scones to rise and become lighter and fluffier. The ingredients were refined to include flour, butter, milk or cream, and a leavening agent like baking powder. This marked the shift from the traditional oat-based scone to the more recognizable wheat-based scone we know today.

Scones’ popularity spread beyond Scotland and England, and they became a common teatime treat across the United Kingdom and other English-speaking countries. The addition of raisins, currants, or other dried fruits, as well as sugar, transformed scones into the sweet delicacies that are commonly enjoyed today, often served with clotted cream and jam in the classic English afternoon tea.

In the United States, scones have also become popular, with various regional and cultural variations. American scones may be larger, sweeter, and have a wider variety of flavor options, such as blueberry, cranberry-orange, or chocolate chip.  Today, scones continue to be beloved treats enjoyed for breakfast, brunch, afternoon tea, or as a delightful snack with a cup of tea or coffee. Their history reflects centuries of evolution and cultural influence, making them a delightful and enduring part of baking traditions worldwide.

Ireland

National Standards Authority of Ireland

Standard Scone Recipe

The standard scone is a simple and versatile preparation that can be customized with various additions, such as dried fruits, nuts, or chocolate chips, to suit different tastes.

Here is a basic recipe for making standard scones:

Ingredients:

  • 2 cups all-purpose flour
  • 1/4 cup granulated sugar
  • 1 tablespoon baking powder
  • 1/2 teaspoon salt
  • 1/2 cup cold unsalted butter, cut into small cubes
  • 1/2 cup milk (plus more for brushing on top)
  • 1 large egg
  • Optional: 1 teaspoon vanilla extract or other flavorings (e.g., almond extract, lemon zest)
  • Optional: Additions such as dried fruits, chocolate chips, or nuts (about 1/2 cup)

Instructions:

  1. Preheat your oven to 400°F (200°C) and line a baking sheet with parchment paper.
  2. In a large mixing bowl, whisk together the flour, sugar, baking powder, and salt until well combined.
  3. Add the cold butter cubes to the flour mixture and use a pastry cutter or your fingers to work the butter into the flour until the mixture resembles coarse crumbs. The butter should be well distributed but still in small pieces.
  4. If you’re adding any optional flavorings or additions, mix them into the dry ingredients at this stage.
  5. In a separate small bowl, whisk together the milk, egg, and optional vanilla extract (or other flavorings) until well combined.
  6. Create a well in the center of the dry ingredients and pour the wet mixture into it. Gently stir the ingredients together until just combined. Be careful not to overmix; the dough should be slightly crumbly but hold together.
  7. Transfer the dough onto a lightly floured surface and shape it into a round disk, about 1 inch (2.5 cm) thick.
  8. Use a sharp knife or a biscuit cutter to cut the dough into wedges or rounds, depending on your preference. Traditionally, scones are cut into triangular shapes.
  9. Place the scones on the prepared baking sheet, leaving some space between them.
  10. Brush the tops of the scones with a little milk to give them a nice golden color when baked.
  11. Bake the scones in the preheated oven for about 15-20 minutes or until they are lightly golden on top.
  12. Remove from the oven and let them cool slightly before serving. Scones are best enjoyed fresh and can be served with butter, clotted cream, jam, or any other toppings of your choice.

This standard scone recipe provides a classic and delicious base that you can experiment with by adding various flavors and mix-ins to create your own unique variations. 


Morning Tea

Qu’est-ce qu’une nation?

August 26, 2024
mike@standardsmichigan.com
, , ,
No Comments

Ernest Renan (1823-1892) was a French philosopher, historian, and scholar of religion. He is best known for his work on nationalism and the relationship between language, culture, and identity.  The language of technology– and the catalog of codes, standards, guidelines, recommended practices and government regulations rest upon a common understanding of how things can and should work separately.  The essay is widely cited:

Qu’est-ce qu’une nation ?

What is a Nation ?

What is a Nation ?

In our domain we routinely see technical agreement and disagreement among stakeholders resolved, or left unresolved because of definitions — even when discussion is conducted in English.  We keep the topic of language (Tamil (மொழி) — since it is one of the most widely spoken languages on earth) on our aperiodic Language colloquia.  See our CALENDAR for the next online meeting; open to everyone.

Université Paris 1 Panthéon-Sorbonne

C’est quoi ?

La Loi Ne Fait Plus Le Bonheur

Normalisation volontaire en électrotechnologie

AFNOR: Norme NF C 15-100

National Electrical Codes

English and French are the two most prominent diplomatic languages, especially in historical and international contexts. They have long been the primary languages of diplomacy due to their widespread use in international organizations and historical influence.

English: Dominates in modern diplomacy, international law, and global organizations. It is the working language in many international forums, including the United Nations, NATO, and the Commonwealth of Nations.

French: Traditionally known as the “language of diplomacy,” French was the dominant diplomatic language until the 20th century. It remains a significant language in international relations, particularly within the United Nations, the European Union, and many African nations.

While other languages like Spanish, Arabic, Russian, and Chinese are also used in diplomatic contexts and are official languages of the United Nations, English and French are the most universally recognized and utilized in diplomatic settings.

Evensong “Knoxville: Summer of 1915”

August 25, 2024
mike@standardsmichigan.com
, , ,
No Comments

Michigan Central


Williams College is a private liberal arts college located in Williamstown, Massachusetts, USA. Founded in 1793, it is one of the oldest institutions of higher education in the United States. The college was established through a bequest of Colonel Ephraim Williams Jr., a war hero who died in the Battle of Lake George during the French and Indian War. In his will, Colonel Williams left funds for the establishment of a free school on the condition that it be located in Williamstown.

Chicken Tacos with Rice and Beans

August 24, 2024
mike@standardsmichigan.com
,
No Comments

 

50,351 students
5,743 full-time instructional faculty
6,578 full-time non-instructional staff
48,677 residents City of East Lansing in 8.125 square miles

Infrastructure Planning and Facilities

Nourriture d’automne

 

 

Michigan Lower Peninsula

 

Push-Cart Cold Brew

August 24, 2024
mike@standardsmichigan.com

No Comments

Standards IndianaIndiana University Total Net Position: $5.223B

The Science of Food Standards

Clavier AZERTY

August 24, 2024
mike@standardsmichigan.com
,
No Comments

QWERTY: This is the most common keyboard layout used in English-speaking countries. The name “QWERTY” comes from the first six letters on the top row of keys. This layout was originally designed to prevent typewriter keys from jamming by placing commonly used keys further apart.

AZERTY: This is a keyboard layout used primarily in French-speaking countries. The letters are arranged differently from QWERTY, with the A and Z keys switched, and some additional special characters included.

QWERTZ: This is a keyboard layout used primarily in German-speaking countries. It is similar to QWERTY, but with some letters rearranged and some additional special characters included.

Dvorak Simplified Keyboard: This is an alternative keyboard layout designed to increase typing speed and efficiency. It places the most commonly used letters in the home row, and the least used letters on the outer edges of the keyboard.

Colemak: This is another alternative keyboard layout designed for increased typing efficiency. It also places the most commonly used letters in the home row, but has a slightly different arrangement than Dvorak.

Unicode: This is a standard for encoding characters from a wide range of writing systems, including Latin, Cyrillic, Arabic, and Chinese, among others. It allows for the input and display of text in multiple languages and scripts on the same  keyboard.

Layout mode
Predefined Skins
Custom Colors
Choose your skin color
Patterns Background
Images Background
Skip to content