Giter VIP home page Giter VIP logo

mrta_stn's People

Contributors

anenriquez avatar argenos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mrta_stn's Issues

Robot uses a combination of its dispatchable graph and the STN of a new task when computing bids

An STN represents tasks with temporal constraints.
A dispatchable graph is a dispatchable version of the STN which bounds the original constraints to make the STN consistent.
When computing the bid for a new task, the STN should be used.
In the current version, the new task is added to the dispatchable graph but not to the STN.

Possible solution:
Store the STN
Add task to STN and compute new dispatchable graph
If the dispatchable graph is allocated to the robot, update both, the STN and the dispatchable graph.

LP solve does not start with an Empty problem

Issue:

probBase:  PSTN Robust Execution LP:
MAXIMIZE
None
SUBJECT TO
_C1: t_0_hi - t_0_lo >= 0

_C2: t_1_hi - t_1_lo >= 0

_C3: t_2_hi - t_2_lo >= 0

_C4: t_3_hi - t_3_lo >= 0

VARIABLES
t_0_hi = 0 Continuous
t_0_lo = 0 Continuous
t_1_hi <= 47 Continuous
t_1_lo <= 47 Continuous
41 <= t_2_hi <= 47 Continuous
41 <= t_2_lo <= 47 Continuous
41 <= t_3_hi <= 1.79769313486e+308 Continuous
41 <= t_3_lo <= 1.79769313486e+308 Continuous

[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] trying alpha 0.499
Welcome to the CBC MILP Solver 
Version: 2.9.0 
Build Date: Feb 12 2015 

command line - /home/angela/.local/lib/python3.5/site-packages/pulp/solverdir/cbc/linux/64/cbc /tmp/0fa257d1aea3477ca75913226558d443-pulp.mps max branch printingOptions all solution /tmp/0fa257d1aea3477ca75913226558d443-pulp.sol (default strategy 1)
At line 2 NAME          MODEL
At line 3 ROWS
At line 13 COLUMNS
At line 38 RHS
At line 47 BOUNDS
At line 62 ENDATA
Problem MODEL has 8 rows, 12 columns and 20 elements
Coin0008I MODEL read with 0 errors
Presolve 1 (-7) rows, 2 (-10) columns and 2 (-18) elements
0  Obj 5.1689761 Dual inf 1.999998 (2)
2  Obj 9.8157144
Optimal - objective value 9.8157144
After Postsolve, objective 9.8157144, infeasibilities - dual 0 (0), primal 0 (0)
Optimal objective 9.815714362 - 2 iterations time 0.002, Presolve 0.00
Option for printingOptions changed from normal to all
Total time (CPU seconds):       0.00   (Wallclock seconds):       0.00

[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] Status: Optimal
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] delta_1_2 = 0.0
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] delta_2_1 = 0.0
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] delta_2_3 = 1.8428564
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] delta_3_2 = 7.972858
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] t_0_hi = 0.0
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] t_0_lo = 0.0
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] t_1_hi = 40.320619
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] t_1_lo = 40.320619
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] t_2_hi = 47.0
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] t_2_lo = 45.646738
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] t_3_hi = 53.522238
[DEBUG]  2019-06-29 22:22:27 [scheduler.srea           ] t_3_lo = 41.0

Output using https://github.com/HEATlab/DREAM.git

[DEBUG]  2019-06-30 09:47:30 [scheduler.srea           ] probBase: PSTN Robust Execution LP:
MAXIMIZE
None
SUBJECT TO
_C1: t_0_hi - t_0_lo >= 0

_C2: t_1_hi - t_1_lo >= 0

_C3: t_2_hi - t_2_lo >= 0

_C4: t_3_hi - t_3_lo >= 0

VARIABLES
t_0_hi = 0 Continuous
t_0_lo = 0 Continuous
t_1_hi <= 47 Continuous
t_1_lo <= 47 Continuous
41 <= t_2_hi <= 47 Continuous
41 <= t_2_lo <= 47 Continuous
41 <= t_3_hi <= 1.79769313486e+308 Continuous
41 <= t_3_lo <= 1.79769313486e+308 Continuous
 
[DEBUG]  2019-06-30 09:47:30 [scheduler.srea           ] trying alpha 0.499
Welcome to the CBC MILP Solver 
Version: 2.9.0 
Build Date: Feb 12 2015 

command line - /home/angela/.local/lib/python3.5/site-packages/pulp/solverdir/cbc/linux/64/cbc /tmp/0f29bd1f809548cfa165db4fdc6fb68f-pulp.mps max branch printingOptions all solution /tmp/0f29bd1f809548cfa165db4fdc6fb68f-pulp.sol (default strategy 1)
At line 2 NAME          MODEL
At line 3 ROWS
At line 13 COLUMNS
At line 38 RHS
At line 47 BOUNDS
At line 64 ENDATA
Problem MODEL has 8 rows, 12 columns and 20 elements
Coin0008I MODEL read with 0 errors
Presolve 0 (-8) rows, 0 (-12) columns and 0 (-20) elements
Empty problem - 0 rows, 0 columns and 0 elements
Optimal - objective value 7.8115106
After Postsolve, objective 7.8115106, infeasibilities - dual 0 (0), primal 0 (0)
Optimal objective 7.811510645 - 0 iterations time 0.002, Presolve 0.00
Option for printingOptions changed from normal to all
Total time (CPU seconds):       0.00   (Wallclock seconds):       0.00

[DEBUG]  2019-06-30 09:47:30 [scheduler.srea           ] Status: Optimal
delta_1_2 = 2.0628989
delta_2_1 = 1.8428564
delta_2_3 = 2.0628989
delta_3_2 = 1.8428564
t_0_hi = 0.0
t_0_lo = 0.0
t_1_hi = 38.25772
t_1_lo = 37.516737
t_2_hi = 47.0
t_2_lo = 41.0
t_3_hi = 53.74228
t_3_lo = 42.483263

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.