# Layout pv panel optimization

**URL:** <https://discourse.julialang.org/t/layout-pv-panel-optimization/64505>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, optimization, ijulia, matrices\
**Created:** [July 12, 2021, 1:28pm UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505 "2021-07-12T13:28:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfajar\_nugraha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfajar_nugraha/32/27019_2.png) [@alfajar\_nugraha](https://discourse.julialang.org/u/alfajar_nugraha)\
**Post date:** [July 12, 2021, 1:28pm UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505/1 "2021-07-12T13:28:18Z")

</div>

matrix for layout pv panel optimization

---

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [July 12, 2021, 3:07pm UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505/2 "2021-07-12T15:07:05Z")

</div>

Hi @alfajar_nugraha, welcome to Discourse! Can you expand upon your question? We’ll need more details to be able to help you out.

---

<div class="post-metadata">

**Author:** ![alfajar\_nugraha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfajar_nugraha/32/27019_2.png) [@alfajar\_nugraha](https://discourse.julialang.org/u/alfajar_nugraha)\
**Post date:** [July 12, 2021, 11:39pm UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505/3 "2021-07-12T23:39:48Z")

</div>

```julia
I want to ask about how to make an optimization model for the installation of a solar panel layout using Julia Jump, with the concept of a matrix, for example a 10×10 matrix, we will find out which matrix points are worth 1 and which is worth 0, if it is worth 1 then the panels can be installed and if the value is 0 the panel cannot be installed. Thank you for your attention.

```

Pada tanggal Sen, 12 Jul 2021 22.12, Cameron Bieganek via JuliaLang \<[julialang@discoursemail.com](mailto:julialang@discoursemail.com)\> menulis:

---

<div class="post-metadata">

**Author:** ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)\
**Post date:** [July 13, 2021, 12:21am UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505/4 "2021-07-13T00:21:12Z")

</div>

Reformatted:

> I want to ask about how to make an optimization model for the installation of a solar panel layout using Julia Jump, with the concept of a matrix, for example a 10×10 matrix, we will find out which matrix points are worth 1 and which is worth 0, if it is worth 1 then the panels can be installed and if the value is 0 the panel cannot be installed. Thank you for your attention.

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [July 13, 2021, 1:59am UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505/5 "2021-07-13T01:59:49Z")

</div>

Since this is your first post, please read [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).

You’ll have more chance of an answer if you can provide code that you have attempted, or can show the mathematical model you are trying to implement.

The JuMP documentation has a number of examples: [https://jump.dev/JuMP.jl/stable/tutorials/Mixed-integer%20linear%20programs/sudoku/](https://jump.dev/JuMP.jl/stable/tutorials/Mixed-integer%20linear%20programs/sudoku/)

Use this tutorial to get started with JuMP: [https://jump.dev/JuMP.jl/stable/tutorials/Getting%20started/getting\_started\_with\_JuMP/](https://jump.dev/JuMP.jl/stable/tutorials/Getting%20started/getting_started_with_JuMP/)

---

<div class="post-metadata">

**Author:** ![alfajar\_nugraha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfajar_nugraha/32/27019_2.png) [@alfajar\_nugraha](https://discourse.julialang.org/u/alfajar_nugraha)\
**Post date:** [July 14, 2021, 3:02pm UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505/6 "2021-07-14T15:02:18Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/5/a/5aca8375d80f2a5a538ba3baab654417c4793c2b.png)  
how i can make this in julia jump? please help me sir, thank you

---

<div class="post-metadata">

**Author:** ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)\
**Post date:** [July 14, 2021, 4:23pm UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505/7 "2021-07-14T16:23:38Z")

</div>

This appears to be a homework problem. People here are generally happy to help you once you already have some Julia code written (maybe with a few bugs that you can’t figure out how to get around), but as a matter of policy, we will not solve your homework for you.

As @odow suggested above, you should work through a JuMP tutorial and then attempt to solve this on your own. Once you reach a point of confusion, feel free to ask for help, but be aware that we’re all volunteers, so the best way to get quick and insightful answers is to make sure you ask your questions well. For that, please refer again to odow’s post, specifically this link: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).

---

<div class="post-metadata">

**Author:** ![alfajar\_nugraha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfajar_nugraha/32/27019_2.png) [@alfajar\_nugraha](https://discourse.julialang.org/u/alfajar_nugraha)\
**Post date:** [July 22, 2021, 7:59am UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505/8 "2021-07-22T07:59:26Z")

</div>

please would you teach me how to make matrice 10x10 with jump julia, and how to recall 6 matrice that landscape and portrait arrange?

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [July 22, 2021, 8:54am UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505/9 "2021-07-22T08:54:17Z")

</div>

I suggest you work through the tutorials I linked to previously.

Another resource for learning JuMP is [Julia – Changhyun Kwon](https://www.chkwon.net/julia/)
