question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

astar router improvements

See original GitHub issue

How can we fix the Astar router for the code below?

import gdsfactory as gf

c = gf.Component("get_route_astar")
w = gf.components.straight()
left = c << w
right = c << w
right.move((100, 80))

obstacle = gf.components.rectangle(size=(100, 10))
obstacle1 = c << obstacle
obstacle2 = c << obstacle
obstacle1.ymin = 40
obstacle2.xmin = 25

port1 = left.ports["o2"]
port2 = right.ports["o2"]

routes = gf.routing.get_route_astar(
    component=c,
    port1=port1,
    port2=port2,
)
c.add(routes.references)
c.show()

@SkandanC

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
joamatabcommented, Sep 10, 2022

Yes, you are right, it looks great

A more useful router would be a global router, I added some links to the issue #57

0reactions
SkandanCcommented, Sep 10, 2022

That is true. But, there isn’t enough space there between the port and the obstacle to resolve the distance parameter there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A* Routing Steiner Trees
Delay/Wirelength improvement [1]. – Simply the order in which nodes are routed - more critical nodes are routed first and generally have the...
Read more >
Improved Global Routing By Using A-Star Algorithm
Abstract. In this paper VLSI routing is improved by improving global routing, this can be done by using A-Star with a heuristic cost...
Read more >
How to boost your Wi-Fi router's performance - TechHive
For a more permanent performance improvement, move your router to a central location inside your home, clear of surroudning clutter.
Read more >
Distributed routing networks: Moving past a star infrastructure ...
Distributed routing networks: Moving past a star infrastructure can increase benefits ... and improved or maintained redundancy levels.
Read more >
Eero Pro 6E Mesh Router Review: A Great Pick for Gigabit ...
The verdict. It's an interesting time for routers, with multiple levels of upgrades available to consumers in need of a new one. Stepping...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found