discreteoptimization / assignment Goto Github PK
View Code? Open in Web Editor NEWAssignments and Graders for Discrete Optimization on Coursera
Home Page: https://www.coursera.org/learn/discrete-optimization
License: MIT License
Assignments and Graders for Discrete Optimization on Coursera
Home Page: https://www.coursera.org/learn/discrete-optimization
License: MIT License
Double check this does not break stuff.
This title no longer make sense on the new platform. Thinking the new name should be "simple string".
see if it can be removed.
Clarify max/sum scoring instead of sum/max.
Also fix strange newline in python url.
I am trying anyint assignment, solver.py ran perfectly. submit.py gives this error:
metadata file "_coursera" not found
_coursera file is in the same directory as submit.py but this error is strange. any idea?
This will address a commonly asked question.
Is this script still needed? If so, should probably be turned into an automated test.
Get some PEP8 going on.
Should strip the submission strip before splitting on line breaks.
See if this file can be renamed with "test". Possibly code needs to be wrapped in a main() function or it could be added to a discovery ignore list.
remove your solution objective value {} appears to be optimal! You can't beat that.
in the top level of grader feedback.
When running submit.py
with python 3.8, you get the following error:
Traceback (most recent call last):
File "./submit.py", line 455, in <module>
main(parser.parse_args())
File "./submit.py", line 387, in main
results = compute(metadata, args.override)
File "./submit.py", line 178, in compute
submission = output(problem.input_file, solver_file)
File "./submit.py", line 217, in output
start = time.clock()
AttributeError: module 'time' has no attribute 'clock'
This is due to time.clock()
being removed in Python 3.8 after having been deprecated since Python 3.3.
The function
time.clock()
has been removed, after having been deprecated since Python 3.3: usetime.perf_counter()
ortime.process_time()
instead, depending on your requirements, to have well-defined behavior.
If the computation is going to be some hours long then I'd rather prefer to enter my email and submission token before to start the computational part, otherwise I need to be sure I come back at the computer to enter email+token before the 5h/10h deadline expires.
And if I run it overnight that may be a bit annoying.
Does anyone know why is this happening I can not submit anything.
Add, shell=True to Popen
By preference of the student knowledge,
It's not possible to compile handouts/vrp.tex
because the following pdfs are missing
handouts/figures/vrp_1.pdf
, handouts/figures/vrp_2.pdf
It seems like the figures for the facility assignment are missing as well but they are commented out in the tex file.
image removed [cjc]
Test the current version of the handouts on windows. Also a good time to check with #8.
Should we support submit to accept an integer value from the "any int" assignment?
Add assertions of feedback to make sure the right kind of message is being generated.
Add an upload spinner to submit.py so that it is clear that the code is not hanging.
adding universal_newlines=True
to the subprocess maybe helpful.
Add these all over the place once it is available. Notable places,
Include optimal and best known solution values into the grader, so that we can check if the optimality flag is set incorrectly.
See the discussion here, https://www.coursera.org/learn/discrete-optimization/discussions/all/threads/PXqI_D_EEeeTwg79SJkWhg
make sure grader error messages are consistent on the new platform. For example, "The evaluation script has failed with error code (1)"
Also make sure that the message for using optimal flag is clarified.
Understand why the solution is changing and make compatible across all python versions.
see if there is a cleaner way to implement test.it, possibly we can use .coveragerc
Camel case is a clear place for improvement.
Add line breaks so that its easier to read in the platform.
Move to a directory based structure, similar to the setcover problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.