-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #484 from baobabsoluciones/release/v1.0.8
Release/v1.0.8
- Loading branch information
Showing
86 changed files
with
9,323 additions
and
6,783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,4 +169,7 @@ cornssh.pub | |
*.db | ||
|
||
# IO files | ||
*.mps | ||
*.mps | ||
|
||
# airflow logs | ||
cornflow-server/airflow_config/logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,14 +122,6 @@ If on Windows export should be changed to set. | |
.. raw:: html | ||
|
||
</details> | ||
|
||
|
||
.. | ||
Docker | ||
------ | ||
|
||
You will also need to install `Docker Community Edition <https://docs.docker.com/engine/install/>`_ and `Docker Compose <https://docs.docker.com/compose/install/>`_. See `here <https://baobabsoluciones.github.io/cornflow/deploy/index.html>`_ how to deploy your own cornflow server. | ||
|
||
|
||
For cornflow-app | ||
|
@@ -192,10 +184,10 @@ If it is the first time you use cornflow-server, you will then need to setup cor | |
export FLASK_APP=cornflow.app | ||
export DATABASE_URL=sqlite:///cornflow.db | ||
python manage.py db upgrade | ||
python manage.py access_init | ||
python manage.py create_service_user --username=airflow [email protected] --password=airflow_test_password | ||
python manage.py create_admin_user --username=cornflow [email protected] --password=cornflow_admin_password | ||
flask db upgrade | ||
flask access_init | ||
flask create_service_user --username=airflow [email protected] --password=airflow_test_password | ||
flask create_admin_user --username=cornflow [email protected] --password=cornflow_admin_password | ||
From there, you can launch cornflow-server by navigating to the cornflow-server repository and running: | ||
|
||
|
@@ -243,7 +235,9 @@ To do so, you need to clone the repository and create a new folder with the name | |
- :code:`/schemas` | ||
|
||
- :code:`instance.json`: jsonschema that describes the input data. | ||
- :code:`instance_checks.json`: jsonschema that describes the output of the instance checks. | ||
- :code:`solution.json`: jsonschema that describes the output data. | ||
- :code:`solution_checks.json`: jsonschema that describes the output of the solution checks. | ||
- :code:`config.json` (optional): jsonschema that describes the configuration. | ||
|
||
- :code:`/solvers` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"type": "object", | ||
"properties": { | ||
"solver": { | ||
"type": "string", | ||
"enum": ["Pyomo", "Pyomo.cbc"], | ||
"default": "Pyomo.cbc" | ||
}, | ||
"timeLimit": { | ||
"type": "number" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
INSTANCE_KEYS_RELATION = { | ||
("employees", "id"): [ | ||
("contracts", "id_employee"), | ||
("skills_employees", "id_employee"), | ||
("contracts", "id_employee", True), | ||
("skills_employees", "id_employee", False), | ||
("employee_holidays", "id_employee", False), | ||
("employee_downtime", "id_employee", False), | ||
("employee_preferences", "id_employee", False), | ||
("employee_schedule", "id_employee", False), | ||
], | ||
("shifts", "id"): [("contracts", "id_shift")], | ||
("shifts", "id"): [("contracts", "id_shift", False)], | ||
("skills", "id"): [ | ||
("skills_employees", "id_skill"), | ||
("skill_demand", "id_skill"), | ||
("skills_employees", "id_skill", False), | ||
("skill_demand", "id_skill", False), | ||
], | ||
} |
Oops, something went wrong.